|Microsoft DirectX 9.0|
The LockSurface method locks the attached DirectDraw surface.
HRESULT LockSurface( BYTE** lpSurface );
[out] Address of a variable that receives a pointer to the locked bits.
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
|E_POINTER||lpSurface is invalid.|
|E_FAIL||No DirectDraw surface is attached to this sample.|