Returns an interface to the instance of the Direct3D object that created the device.
HRESULT GetDirect3D( IDirect3D9 ** ppD3D9 );
If the method succeeds, the return value is D3D_OK. If the method fails, the return value can be D3DERR_INVALIDCALL.
Calling IDirect3DDevice9::GetDirect3D will increase the internal reference count on the IDirect3D9 interface. Failure to call IUnknown::Release when finished using this IDirect3D9 interface results in a memory leak.
Header: Declared in D3d9.h.