Author Topic: Declaration for GetScaleFactorForMonitor for use in Powerbasic  (Read 2860 times)

0 Members and 1 Guest are viewing this topic.

Offline Theo Gottwald

  • Administrator
  • Hero Member
  • *****
  • Posts: 1081
  • User-Rate: +30/-4
  • Gender: Male
    • it-berater
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:

Code: [Select]
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!