Click or drag to resize

WindowsUtilitiesReleaseDC Method

Releases a device context (DC), freeing it for use by other applications. The effect of the ReleaseDC function depends on the type of DC. It frees only common and window DCs. It has no effect on class or private DCs.

Namespace:  ShellBoost.Core.Utilities
Assembly:  ShellBoost.Core (in ShellBoost.Core.dll) Version: 1.8.3.0
Syntax
C#
public static int ReleaseDC(
	IntPtr handle,
	IntPtr hdc
)

Parameters

handle
Type: SystemIntPtr
A handle to the window whose DC is to be released.
hdc
Type: SystemIntPtr
A handle to the DC to be released.

Return Value

Type: Int32
If the DC was released, the return value is 1, otherwise it's zero.
See Also