IDirect3DDevice::CreateMatrix

HRESULT CreateMatrix(LPD3DMATRIXHANDLE lpD3DMatHandle);

Creates a matrix.

·Returns D3D_OK if successful, or an error otherwise, such as DDERR_INVALIDPARAMS.

lpD3DMatHandle

Address of a variable that will contain a handle to the matrix that is created. The call will fail if a buffer of at least the size of the matrix cannot be created.