<< Click to Display Table of Contents >> Navigation: ThinBASIC Modules > UI (User Interface) > Windows API > Win_SetProcessDpiAwareness |
Description
Sets the process-default DPI awareness level
Syntax
n = Win_SetProcessDpiAwareness(PROCESS_DPI_AWARENESS)
Returns
If the function succeeds, the return value is nonzero. Otherwise, the return value is zero.
Parameters
Name |
Type |
Optional |
Meaning |
PROCESS_DPI_AWARENESS |
Number |
No |
The DPI awareness value to set.
Use one of the following equates: %PROCESS_DPI_UNAWARE %PROCESS_SYSTEM_DPI_AWARE %PROCESS_PER_MONITOR_DPI_AWARE |
Remarks
For additional info, please refer to MS documentation at: https://learn.microsoft.com/en-us/windows/win32/api/shellscalingapi/nf-shellscalingapi-setprocessdpiawareness
Restrictions
See also
Examples