GetThreadDpiAwarenessContext function
Gets the DPI_AWARENESS_CONTEXT for the current thread.
Syntax
DPI_AWARENESS_CONTEXT WINAPI GetThreadDpiAwarenessContext(void);
Parameters
This function has no parameters.
Return value
The current DPI_AWARENESS_CONTEXT for the thread.
Remarks
This method will return the latest DPI_AWARENESS_CONTEXT sent to SetThreadDpiAwarenessContext. If SetThreadDpiAwarenessContext was never called for this thread, then the return value will equal the default DPI_AWARENESS_CONTEXT for the process.
Requirements
|
Minimum supported client |
Windows 10 [desktop apps only] |
|---|---|
|
Minimum supported server |
None supported |
|
Header |
|
|
Library |
|
|
DLL |
|
See also