|Microsoft DirectX 9.0|
The GetSurfaceAndReleaseLock method retrieves and unlocks the surface that the sample represents.
HRESULT GetSurfaceAndReleaseLock( IDirectDrawSurface **ppDirectDrawSurface, RECT *pRect );
[out] Address of a pointer to the sample's IDirectDrawSurface interface.
[out] Pointer to a variable that receives the address of the rectangle defining the part of the surface that the sample represents.
Returns an HRESULT value.
The caller should release the returned surface pointer, except when calling the Overlay Mixer filter's implementation of this interface.