Powerbasic Museum 2020-B

Webmaster: José Roca (PBWIN 10+/PBCC 6+) (SDK Forum) => Windows API Programming => Topic started by: Theo Gottwald on April 24, 2019, 06:14:57 AM

Title: Declaration for GetScaleFactorForMonitor for use in Powerbasic
Post by: Theo Gottwald on April 24, 2019, 06:14:57 AM
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!