Gdi32GetDeviceCaps(SafeHandle, Int32) Method
Retrieves device-specific information for 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", CharSet = CharSet.Auto, ExactSpelling = true,
SetLastError = true)]
public static int GetDeviceCaps(
SafeHandle hdc,
int index
)
<DllImportAttribute("GDI32.dll", CharSet := CharSet.Auto, ExactSpelling := true,
SetLastError := true>]
Public Shared Function GetDeviceCaps (
hdc As SafeHandle,
index As Integer
) As Integer
Dim hdc As SafeHandle
Dim index As Integer
Dim returnValue As Integer
returnValue = Gdi32.GetDeviceCaps(hdc,
index)
public:
[DllImportAttribute(L"GDI32.dll", CharSet = CharSet::Auto, ExactSpelling = true,
SetLastError = true)]
static int GetDeviceCaps(
SafeHandle^ hdc,
int index
)
[<DllImportAttribute("GDI32.dll", CharSet = CharSet.Auto, ExactSpelling = true,
SetLastError = true)>]
static member GetDeviceCaps :
hdc : SafeHandle *
index : int -> int
No code example is currently available or this language may not be supported.
- hdc SafeHandle
-
A handle To a DC (Device Context).
- index Int32
-
The item to be returned.
Int32
The return value specifies the value of the desired item.