Microsoft DirectX 9.0 |
The LockSurface method locks the attached Direct3D surface.
Syntax
HRESULT LockSurface(
BYTE** lpSurface
);
Parameters
lpSurface
[out] Address of a variable that receives a pointer to the locked bits.
Return Values
The method returns an HRESULT. Possible values include those in the following table.
Value | Description |
S_OK | The method succeeded. |
E_POINTER | lpSurface is invalid. |
E_FAIL | No Direct3D surface is attached to this sample. |
Requirements
Include D3d9.h, Vmr9.h.
See Also