User32ReleaseDC(SafeHandle, IntPtr) Method

Releases a device context (DC), freeing it for use by other applications.

The effect of the ReleaseDC(IntPtr, IntPtr) function depends on the type of DC. It frees only common and window DCs. It has no effect on class or private DCs.

Definition

Namespace: DevCase.Win32.NativeMethods
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("User32.dll")]
public static bool ReleaseDC(
	SafeHandle hWnd,
	IntPtr hdc
)

Parameters

hWnd  SafeHandle
A IntPtr handle to the window whose DC is to be released.
hdc  IntPtr
A IntPtr handle to the DC to be released.

Return Value

Boolean
if the DC was released, if the DC was not released.

Remarks

See Also