AreDpiAwarenessContextsEqual function

Determines whether two DPI_AWARENESS_CONTEXT values are identical.

Syntax

BOOL AreDpiAwarenessContextsEqual(
  DPI_AWARENESS_CONTEXT dpiContextA,
  DPI_AWARENESS_CONTEXT dpiContextB
);

Parameters

dpiContextA

The first value to compare.

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

   
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