I need to get the scaling factor for each monitor in a multi-monitor setup on Windows 10. As far as I can find no one has posted anything like that here.
I think this is probably what I need: https://msdn.microsoft.com/en-us/library/windows/desktop/dn280510(v=vs.85).aspx
I'm just not a windows programmer and I haven't quite figured out how to use DLLCall to get the info from that function.
Any pointers or help?
#include <WinAPIGdi.au3>
; enum _PROCESS_DPI_AWARENESS
Global Const $PROCESS_DPI_UNAWARE = 0
Global Const $PROCESS_SYSTEM_DPI_AWARE = 1
Global Const $PROCESS_PER_MONITOR_DPI_AWARE = 2
; enum _MONITOR_DPI_TYPE
Global Const $MDT_EFFECTIVE_DPI = 0
Global Const $MDT_ANGULAR_DPI = 1
Global Const $MDT_RAW_DPI = 2
Global Const $MDT_DEFAULT = $MDT_EFFECTIVE_DPI
_WinAPI_SetProcessDpiAwareness($PROCESS_PER_MONITOR_DPI_AWARE)