GetDpiAwarenessContextForProcess function (winuser.h)
Gets a DPI_AWARENESS_CONTEXT handle for the specified process.
Syntax
DPI_AWARENESS_CONTEXT GetDpiAwarenessContextForProcess(
HANDLE hProcess
);
Parameters
hProcess
A handle to the process for which the DPI awareness context is retrieved. If NULL is specified, the context is retrieved for the current process.
Return value
The DPI_AWARENESS_CONTEXT for the specified process.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 10, version 1803 [desktop apps only] |
Minimum supported server | Windows Server 2016 [desktop apps only] |
Header | winuser.h |
Library | User32.lib |
DLL | User32.dll |
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for