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