IDirect3DRMDevice::InitFromD3D
HRESULT InitFromD3D(LPDIRECT3D lpD3D, LPDIRECT3DDEVICE lpD3DIMDev);
Initializes a Retained-Mode device from a specified Direct3D Immediate-Mode object and 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.
lpD3D
Address of the Direct3D Immediate-Mode object to use to initialize the Retained-Mode device.
lpD3DIMDev
Address of the Immediate-Mode device to use to initialize the Retained-Mode device.