Gdi32CreateCompatibleDC(SafeHandle) Method

Creates a memory device context (DC) compatible with the specified device.

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", SetLastError = true)]
public static IntPtr CreateCompatibleDC(
	SafeHandle hdc
)

Parameters

hdc  SafeHandle
A handle to an existing device context (DC).

If this handle is Zero, the function creates a memory device context (DC) compatible with the application's current screen.

Return Value

IntPtr
If the function succeeds, the return value is the handle to a memory device context (DC).

If the function fails, the return value is Zero.

Remarks

See Also