IDirect3DRM::CreateDeviceFromD3D
Creates a Direct3DRM Windows device by using specified Direct3D objects.
HRESULT CreateDeviceFromD3D(
LPDIRECT3D lpD3D,
LPDIRECT3DDEVICE lpD3DDev,
LPDIRECT3DRMDEVICE * lplpD3DRMDevice
);
Parameters
lpD3D
Address of an instance of Direct3D.
lpD3DDev
Address of a Direct3D device object.
lplpD3DRMDevice
Address that will be filled with a pointer to an IDirect3DRMDevice interface if the call succeeds.
Return Values
Returns D3DRM_OK if successful, or an error otherwise. For a list of possible return codes, see Direct3D Retained-Mode Return Values.