GetThreadDpiHostingBehavior function (winuser.h)

Retrieves the DPI_HOSTING_BEHAVIOR from the current thread.

Syntax

DPI_HOSTING_BEHAVIOR GetThreadDpiHostingBehavior();

Return value

The DPI_HOSTING_BEHAVIOR of the current thread.

Remarks

This API returns the hosting behavior set by an earlier call of SetThreadDpiHostingBehavior, or DPI_HOSTING_BEHAVIOR_DEFAULT if no earlier call has been made.

Requirements

Requirement Value
Minimum supported client Windows 10, version 1803 [desktop apps only]
Minimum supported server Windows Server 2016 [desktop apps only]
Target Platform Windows
Header winuser.h
Library User32.lib
DLL User32.dll

See also

DPI_HOSTING_BEHAVIOR

GetWindowDpiHostingBehavior

SetThreadDpiHostingBehavior