Method ReleaseDC
ReleaseDC(IntPtr, IntPtr)
Releases a device context (DC), freeing it for use by other applications.
public static int ReleaseDC(IntPtr hwnd, IntPtr hdc)
Parameters
hwnd
IntPtrHandle to the window whose DC is to be released.
hdc
IntPtrHandle to the DC to be released.
Returns
- int
The return value indicates whether the DC was released. If the DC was released, the return value is 1; otherwise the return value is zero.