GetAwarenessFromDpiAwarenessContext function

Retrieves the DPI_AWARENESS value from a DPI_AWARENESS_CONTEXT.

Syntax

DPI_AWARENESS GetAwarenessFromDpiAwarenessContext(
  DPI_AWARENESS_CONTEXT value
);

Parameters

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

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

See Also

DPI_AWARENESS