User32GetDpiFromDpiAwarenessContext Method
Retrieves the DPI from a given DPI_AWARENESS_CONTEXT handle.
This enables you to determine the DPI of a thread without needed to examine a window created within that thread.
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)]
public static uint GetDpiFromDpiAwarenessContext(
IntPtr value
)
<DllImportAttribute("User32.dll", ExactSpelling := true>]
Public Shared Function GetDpiFromDpiAwarenessContext (
value As IntPtr
) As UInteger
Dim value As IntPtr
Dim returnValue As UInteger
returnValue = User32.GetDpiFromDpiAwarenessContext(value)
public:
[DllImportAttribute(L"User32.dll", ExactSpelling = true)]
static unsigned int GetDpiFromDpiAwarenessContext(
IntPtr value
)
[<DllImportAttribute("User32.dll", ExactSpelling = true)>]
static member GetDpiFromDpiAwarenessContext :
value : IntPtr -> uint32
No code example is currently available or this language may not be supported.
- value IntPtr
-
The DPI_AWARENESS_CONTEXT handle to examine.
UInt32
The DPI value associated with the DPI_AWARENESS_CONTEXT handle.