shcore.dll on Windows 7 — does it exist?

二次信任 提交于 2019-12-10 16:45:39

问题


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:


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



来源:https://stackoverflow.com/questions/37058349/shcore-dll-on-windows-7-does-it-exist

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!