Add querying render target from D3D device.
Reference count for versions 1, 2, 3, and 4 of IDirectDrawSurface::AddAttachedSurface and DeleteAttachedSurface.

git-svn-id: https://www.williamfeely.info/svn/dxgl@495 8a90861a-4eca-46d5-b744-240ff16d0c4d