IDirect3DDevice::GetDirect3D

The IDirect3DDevice::GetDirect3D method retrieves the Direct3D object for this device.

HRESULT GetDirect3D(
  LPDIRECT3D *lplpD3D  
);
 

Parameters

lplpD3D
Address that will contain a pointer to the Direct3D object's IDirect3D 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.

QuickInfo

  Windows NT/2000: Requires Windows NT 4.0 SP3 or later.
  Windows 95/98: Requires Windows 95 or later. Available as a redistributable for Windows 95.
  Header: Declared in d3d.h.
  Import Library: Use ddraw.lib.