User32GetSystemMetricsForDpi Method
Retrieves the specified system metric or system configuration setting taking into account a provided DPI.
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("User32.dll", ExactSpelling = true, SetLastError = true)]
public static int GetSystemMetricsForDpi(
int index,
uint dpi
)
<DllImportAttribute("User32.dll", ExactSpelling := true, SetLastError := true>]
Public Shared Function GetSystemMetricsForDpi (
index As Integer,
dpi As UInteger
) As Integer
Dim index As Integer
Dim dpi As UInteger
Dim returnValue As Integer
returnValue = User32.GetSystemMetricsForDpi(index,
dpi)
public:
[DllImportAttribute(L"User32.dll", ExactSpelling = true, SetLastError = true)]
static int GetSystemMetricsForDpi(
int index,
unsigned int dpi
)
[<DllImportAttribute("User32.dll", ExactSpelling = true, SetLastError = true)>]
static member GetSystemMetricsForDpi :
index : int *
dpi : uint32 -> int
No code example is currently available or this language may not be supported.
- index Int32
-
The system metric or configuration setting to be retrieved.
- dpi UInt32
-
The DPI to use for scaling the metric.
Int32
If the function succeeds, the return value is
.
If the function fails, the return value is
.