Table of Contents

Method ReleaseDC

Namespace
Alternet.Common
Assembly
Alternet.Common.v9.dll

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 IntPtr

Handle to the window whose DC is to be released.

hdc IntPtr

Handle 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.