GetWindowDpiAwarenessContext function
Returns the DPI_AWARENESS_CONTEXT associated with a window.
Syntax
DPI_AWARENESS_CONTEXT WINAPI GetWindowDpiAwarenessContext( _In_ HWND hwnd );
Parameters
- hwnd [in]
-
The window to query.
Return value
The DPI_AWARENESS_CONTEXT for the provided window. If the window is not valid, the return value is NULL.
Remarks
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.
Requirements
|
Minimum supported client |
Windows 10 [desktop apps only] |
|---|---|
|
Minimum supported server |
None supported |
|
Header |
|
|
Library |
|
|
DLL |
|
See also