GetWindowDpiHostingBehavior function (winuser.h)
Returns the DPI_HOSTING_BEHAVIOR of the specified window.
Syntax
DPI_HOSTING_BEHAVIOR GetWindowDpiHostingBehavior(
HWND hwnd
);
Parameters
hwnd
The handle for the window to examine.
Return value
The DPI_HOSTING_BEHAVIOR of the specified window.
Remarks
This API allows you to examine the hosting behavior of a window after it has been created. A window's hosting behavior is the hosting behavior of the thread in which the window was created, as set by a call to SetThreadDpiHostingBehavior. This is a permanent value and cannot be changed after the window is created, even if the thread's hosting behavior is changed.
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 |