IsValidDpiAwarenessContext function (winuser.h)

Determines if a specified DPI_AWARENESS_CONTEXT is valid and supported by the current system.

Syntax

BOOL IsValidDpiAwarenessContext(
  [in] DPI_AWARENESS_CONTEXT value
);

Parameters

[in] value

The context that you want to determine if it is supported.

Return value

TRUE if the provided context is supported, otherwise FALSE.

Remarks

IsValidDpiAwarenessContext determines the validity of any provided DPI_AWARENESS_CONTEXT. You should make sure a context is valid before using SetThreadDpiAwarenessContext to that context.

An input value of NULL is considered to be an invalid context and will result in a return value of FALSE.

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