8

I am trying to use this function, but I don't have shcore.dll and I can't figure out where to get it. Is shcore.dll just a Windows 10 DLL?

   [DllImport("Shcore.dll")]
        internal static extern IntPtr GetDpiForMonitor(
            [In] IntPtr hmonitor,
            [In] MonitorDpiType dpiType,
            [Out] out uint dpiX,
            [Out] out uint dpiY);
patrick
  • 16,091
  • 29
  • 100
  • 164

1 Answers1

12

It is not available on Windows 7. Windows 8.1 or newer is required based on Microsoft's documentation.

Alexander Malakhov
  • 3,383
  • 2
  • 33
  • 58
Sami Kuhmonen
  • 30,146
  • 9
  • 61
  • 74