SetProcessDpiAwarenessContext function user32
It is recommended that you set the process-default DPI awareness via application manifest. See Setting the default DPI awareness for a process for more information. Setting the process-default DPI awareness via API call can lead to unexpected application behavior. Sets the current process to a specified dots per inch (dpi) awareness context. The DPI awareness contexts are from the DPI_AWARENESS_CONTEXT value.
BOOL SetProcessDpiAwarenessContext(
DPI_AWARENESS_CONTEXT value
);
Implementation
int SetProcessDpiAwarenessContext(int value) =>
_SetProcessDpiAwarenessContext(value);