GetAwarenessFromDpiAwarenessContext function (winuser.h)

Retrieves the DPI_AWARENESS value from a DPI_AWARENESS_CONTEXT.

Syntax

DPI_AWARENESS GetAwarenessFromDpiAwarenessContext(
  [in] DPI_AWARENESS_CONTEXT value
);

Parameters

[in] value

The DPI_AWARENESS_CONTEXT you want to examine.

Return value

The DPI_AWARENESS. If the provided value is null or invalid, this method will return DPI_AWARENESS_INVALID.

Remarks

A DPI_AWARENESS_CONTEXT contains multiple pieces of information. For example, it includes both the current and the inherited DPI_AWARENESS. This method retrieves the DPI_AWARENESS from the structure.

Requirements

Requirement Value
Minimum supported client Windows 10, version 1607 [desktop apps only]
Minimum supported server Windows Server 2016 [desktop apps only]
Target Platform Windows
Header winuser.h (include Windows.h)
Library User32.lib
DLL User32.dll

See also

DPI_AWARENESS