AreDpiAwarenessContextsEqual function (winuser.h)

Determines whether two DPI_AWARENESS_CONTEXT values are identical.

Syntax

BOOL AreDpiAwarenessContextsEqual(
  [in] DPI_AWARENESS_CONTEXT dpiContextA,
  [in] DPI_AWARENESS_CONTEXT dpiContextB
);

Parameters

[in] dpiContextA

The first value to compare.

[in] dpiContextB

The second value to compare.

Return value

Returns TRUE if the values are equal, otherwise FALSE.

Remarks

A DPI_AWARENESS_CONTEXT contains multiple pieces of information. For example, it includes both the current and the inherited DPI_AWARENESS values. AreDpiAwarenessContextsEqual ignores informational flags and determines if the values are equal. You can't use a direct bitwise comparison because of these informational flags.

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