Gdi32DeleteDC(SafeHandle) Method

Deletes the specified device context (DC).

An application must not delete a DC whose handle was obtained by calling the GetDC(IntPtr) function. instead, it must call the ReleaseDC(IntPtr, IntPtr) function to free the DC.

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("GDI32.dll")]
public static bool DeleteDC(
	SafeHandle hdc
)

Parameters

hdc  SafeHandle
A handle to the device context.

Return Value

Boolean
If the function succeeds, the return value is .

If the function fails, the return value is .

Remarks

See Also