HRESULT Initialize(LPDIRECT3D lpd3d, LPGUID lpGUID,
LPD3DDEVICEDESC lpd3ddvdesc);
Initializes a device.
·Returns D3D_OK if successful, or an error otherwise. For a list of possible return values, see Direct3D Immediate-Mode Return Values.
lpd3d
Address of the Direct3D device to use as an initializer.
lpGUID
Address of the globally unique identifier (GUID) used as the interface identifier.
lpd3ddvdesc
Address of a D3DDEVICEDESC structure describing the Direct3DDevice object to be initialized.