Deprecated: Array and string offset access syntax with curly braces is deprecated in /homepages/21/d38531796/htdocs/jose/smfforum/Sources/Subs.php on line 3825
Declaration for GetScaleFactorForMonitor for use in Powerbasic

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

0 Members and 1 Guest are viewing this topic.

Offline Theo Gottwald

  • Administrator
  • Hero Member
  • *****
  • Posts: 948
  • User-Rate: +30/-4
    • 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!