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.

Definition

Namespace: DevCase.Win32.NativeMethods
Assembly: 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
)

Parameters

value  IntPtr
The DPI_AWARENESS_CONTEXT handle to examine.

Return Value

UInt32
The DPI value associated with the DPI_AWARENESS_CONTEXT handle.

Remarks

See Also