• Welcome to PowerBasic Museum 2020-A.
 

Declaration for GetScaleFactorForMonitor for use in Powerbasic

Started by Theo Gottwald, April 24, 2019, 06:14:57 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Theo Gottwald

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

QuoteGetScaleFactorForMonitor was first introduced in Windows 8.1 and I stopped updating the headers before it. You can use:


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


thanks Jose!