IDirect3DRMDevice::GetDirect3DDevice

HRESULT GetDirect3DDevice(LPDIRECT3DDEVICE * lplpD3DDevice);

Retrieves a pointer to an Immediate-Mode device.

·Returns D3DRM_OK if successful, or an error otherwise. For a list of possible return codes, see Direct3D Retained-Mode Return Values.

lplpD3DDevice

Address of a pointer that is initialized with a pointer to an Immediate-Mode device object.