GetDpiForMonitor

Discussion in 'Windows 7' started by ExtremeGrief, Jan 25, 2022.

  1. ExtremeGrief

    ExtremeGrief MDL Addicted

    Jun 2, 2020
    729
    154
    30
    Hello, does anyone know how to port GetDpiForMonitor to Windows 7? It's included in api-ms-win-shcore-scaling-l1-1-1.dll starting from WinBlue Windows 8.1 NT 6.3.9600. I need this DLL to run an app on Windows 7. It needed 2 functions, SetProcessDpiAwareness and GetDpiForMonitor. I already managed to port SetProcessDpiAwareness successfully but I'm stuck on GetDpiForMonitor... If some experienced user can help me I would be really thankful. Thanks!