User32GetAwarenessFromDpiAwarenessContext Method

Retrieves the DpiAwareness value from a DPI_AWARENESS_CONTEXT.

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 DpiAwareness GetAwarenessFromDpiAwarenessContext(
	IntPtr value
)

Parameters

value  IntPtr
The DPI_AWARENESS_CONTEXT you want to examine.

Return Value

DpiAwareness
The DpiAwareness.

If the provided value is null or invalid, this method will return Invalid.

Remarks

See Also