Share via


IDirectDrawSurface::ReleaseDC

 
Microsoft DirectShow 9.0

IDirectDrawSurface::ReleaseDC

The ReleaseDC method releases the hDC previously obtained with GetDC. It also Unlocks the surface previously locked when GetDC was called.

Syntax

  
    
   DC

Parameters

hDC

Handle to a device context previously obtained by calling GetDC.

Return Values

Value Description
DD_OK The method succeeded.
DDERR_INVALIDPARAMS One or more of the input parameters is invalid.
DDERR_INVALIDOBJECT DirectDraw received a pointer that was an invalid DirectDraw object.
DDERR_SURFACELOST Access to this surface is being refused because the surface memory is gone. The DirectDrawSurface object representing this surface should have Restore called on it.
DDERR_GENERIC Generic failure.
DDERR_UNSUPPORTED Action not supported.

See Also