IT-Consultant: José Roca (PBWIN 10+/PBCC 6+) (Archive only) > Windows API Programming

Declaration for GetScaleFactorForMonitor for use in Powerbasic


Theo Gottwald:
Yesterday Jose helped me with this, so let me share it with you all:

--- Quote ---GetScaleFactorForMonitor was first introduced in Windows 8.1 and I stopped updating the headers before it. You can use:
--- End quote ---

--- Code: ---DECLARE FUNCTION GetScaleFactorForMonitor IMPORT "Shcore.dll" ALIAS "GetScaleFactorForMonitor" ( _
   BYVAL hMon AS DWORD _                                ' HMONITOR hMon
 , BYREF pScale AS LONG _                               ' DEVICE_SCALE_FACTOR *pScale
 ) AS LONG                                              ' HRESULT
--- End code ---

thanks Jose!


[0] Message Index

Go to full version