IDirectDrawSurface7::ReleaseDC method (ddraw.h)
Releases the handle of a device context that was previously obtained by using the IDirectDrawSurface7::GetDC method.
Syntax
HRESULT ReleaseDC(
[in] HDC unnamedParam1
);
Parameters
[in] unnamedParam1
The handle of a device context that was previously obtained by IDirectDrawSurface7::GetDC.
Return value
If the method succeeds, the return value is DD_OK.
If it fails, the method can return one of the following error values:
- DDERR_GENERIC
- DDERR_INVALIDOBJECT
- DDERR_INVALIDPARAMS
- DDERR_SURFACELOST
- DDERR_UNSUPPORTED
Remarks
ReleaseDC also unlocks the surface that was previously locked when the IDirectDrawSurface7::GetDC method was called.
Requirements
Requirement | Value |
---|---|
Target Platform | Windows |
Header | ddraw.h |
Library | Ddraw.lib |
DLL | Ddraw.dll |