0
我想使用此功能,但我沒有shcore.dll,我無法弄清楚在哪裏得到它。 shcore.dll只是一個Windows 10 DLL?Windows 7上的shcore.dll - 它存在嗎?
[DllImport("Shcore.dll")]
internal static extern IntPtr GetDpiForMonitor(
[In] IntPtr hmonitor,
[In] MonitorDpiType dpiType,
[Out] out uint dpiX,
[Out] out uint dpiY);
每個顯示器DPI縮放加入先從8.1,所以沒有,在Win7無法使用需要。 – magicandre1981