【发布时间】:2016-05-05 19:04:16
【问题描述】:
我正在尝试使用此功能,但我没有 shcore.dll,而且我不知道从哪里获得它。 shcore.dll 只是一个 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);
【问题讨论】:
-
per Monitor DPI 缩放是从 8.1 开始添加的,所以不,在 Win7 中不可用。