IsValidDpiAwarenessContext function

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

Syntax

BOOL IsValidDpiAwarenessContext(
  DPI_AWARENESS_CONTEXT value
);

Parameters

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

   
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