|Microsoft DirectX 9.0|
The ReleaseDC method releases the hDC previously obtained with GetDC. It also Unlocks the surface previously locked when GetDC was called.
HRESULT ReleaseDC( HDC hDC );
Handle to a device context previously obtained by calling GetDC.
|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_UNSUPPORTED||Action not supported.|