Events
May 19, 6 PM - May 23, 12 AM
Calling all developers, creators, and AI innovators to join us in Seattle @Microsoft Build May 19-22.
Register todayThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Returns the DPI_AWARENESS_CONTEXT associated with a window.
DPI_AWARENESS_CONTEXT GetWindowDpiAwarenessContext(
[in] HWND hwnd
);
[in] hwnd
The window to query.
The DPI_AWARENESS_CONTEXT for the provided window. If the window is not valid, the return value is NULL.
The return value of GetWindowDpiAwarenessContext is not affected by the DPI_AWARENESS of the current thread. It only indicates the context of the window specified by the hwnd input parameter.
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 |
Events
May 19, 6 PM - May 23, 12 AM
Calling all developers, creators, and AI innovators to join us in Seattle @Microsoft Build May 19-22.
Register today