Microsoft DirectX 9.0 |
The InitializeDevice method initializes the Direct3D device.
Syntax
HRESULT InitializeDevice(
DWORD_PTR dwUserID,
VMR9AllocationInfo* lpAllocInfo,
DWORD* lpNumBuffers
);
Parameters
dwUserID
[in] Specifies this instance of the VMR.
lpAllocInfo
[in] Specifies a VMR9AllocationInfo structure that contains the initialization parameters.
lpNumBuffers
[in, out] On input, specifies the number of buffers to create. When the method returns, this parameter contains the number of buffers that were actually allocated.
Return Values
The method returns an HRESULT. Possible values include those in the following table.
Value | Description |
S_OK | The method succeeded. |
Requirements
Include D3d9.h, Vmr9.h.
See Also