HRESULT GetDirect3D(LPDIRECT3D* lpD3D);
Retrieves the current IDirect3D interface.
·Returns D3D_OK if successful, or an error otherwise. For a list of possible return codes, see Direct3D Immediate-Mode Return Values.
lpD3D
Address that will contain the interface when the method returns.