Gdi32CreateCompatibleDC(SafeHandle) Method
Creates a memory device context (DC) compatible with the specified device.
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("GDI32.dll", SetLastError = true)]
public static IntPtr CreateCompatibleDC(
SafeHandle hdc
)
<DllImportAttribute("GDI32.dll", SetLastError := true>]
Public Shared Function CreateCompatibleDC (
hdc As SafeHandle
) As IntPtr
Dim hdc As SafeHandle
Dim returnValue As IntPtr
returnValue = Gdi32.CreateCompatibleDC(hdc)
public:
[DllImportAttribute(L"GDI32.dll", SetLastError = true)]
static IntPtr CreateCompatibleDC(
SafeHandle^ hdc
)
[<DllImportAttribute("GDI32.dll", SetLastError = true)>]
static member CreateCompatibleDC :
hdc : SafeHandle -> IntPtr
No code example is currently available or this language may not be supported.
- 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.
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.