Gdi32CreateCompatibleDC(IntPtr) 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(
IntPtr hdc
)
<DllImportAttribute("GDI32.dll", SetLastError := true>]
Public Shared Function CreateCompatibleDC (
hdc As IntPtr
) As IntPtr
Dim hdc As IntPtr
Dim returnValue As IntPtr
returnValue = Gdi32.CreateCompatibleDC(hdc)
public:
[DllImportAttribute(L"GDI32.dll", SetLastError = true)]
static IntPtr CreateCompatibleDC(
IntPtr hdc
)
[<DllImportAttribute("GDI32.dll", SetLastError = true)>]
static member CreateCompatibleDC :
hdc : IntPtr -> IntPtr
No code example is currently available or this language may not be supported.
- hdc IntPtr
-
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.