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.
Namespace: DevCase.Win32.NativeMethodsAssembly: 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
)
<DllImportAttribute("User32.dll">]
Public Shared Function ReleaseDC (
hWnd As SafeHandle,
hdc As IntPtr
) As Boolean
Dim hWnd As SafeHandle
Dim hdc As IntPtr
Dim returnValue As Boolean
returnValue = User32.ReleaseDC(hWnd,
hdc)
public:
[DllImportAttribute(L"User32.dll")]
static bool ReleaseDC(
SafeHandle^ hWnd,
IntPtr hdc
)
[<DllImportAttribute("User32.dll")>]
static member ReleaseDC :
hWnd : SafeHandle *
hdc : IntPtr -> bool
No code example is currently available or this language may not be supported.
- 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.
Boolean if the DC was released,
if the DC was not released.