Shcore. Dll on Windows 7 -- Does It Exist?

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);
1

1 Answer

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Robert Thorne

Robert Thorne

Automotive & Future Transportation Editor

Robert Thorne covers electric vehicle innovations, autonomous driving systems, global mobility trends, and automotive engineering developments.

Share this article
Twitter Facebook Pinterest