IDirect3DDevice2::GetDirect3D

The IDirect3DDevice2::GetDirect3D method retrieves the current IDirect3D2 interface.

HRESULT GetDirect3D(
  LPDIRECT3D2 *lplpD3D2  
);
 

Parameters

lplpD3D2
Address that will contain the interface when the method returns.

Return Values

If the method succeeds, the return value is D3D_OK.

If the method fails, the return value is an error. For a list of possible return codes, see Direct3D Immediate-Mode Return Values.

Remarks

In the IDirect3DDevice interface, this method retrieves the current IDirect3D interface instead of an IDirect3D2 interface.

QuickInfo

  Windows NT: Use version 5.0 or later.
  Windows: Use Windows 95 or later. Available as a redistributable for Windows 95.
  Windows CE: Unsupported.
  Header: Declared in d3d.h.
  Import Library: Use ddraw.lib.