From 4efd504b334d7a09c54867fa8d9a31833ca3ec21 Mon Sep 17 00:00:00 2001 From: David Hall Date: Thu, 26 Dec 2019 17:43:56 -0700 Subject: [PATCH] Replaced int for SystemMetric as first parameter on GetSystemMetricsForDpi (#79) --- PInvoke/User32/WinUser.HighDpi.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PInvoke/User32/WinUser.HighDpi.cs b/PInvoke/User32/WinUser.HighDpi.cs index 2b898286..c6f44401 100644 --- a/PInvoke/User32/WinUser.HighDpi.cs +++ b/PInvoke/User32/WinUser.HighDpi.cs @@ -51,7 +51,7 @@ namespace Vanara.PInvoke // nIndex, UINT dpi ); [DllImport(Lib.User32, SetLastError = true, ExactSpelling = true)] [PInvokeData("winuser.h", MSDNShortId = "E95BB417-81FA-4824-BE68-A1E3E003F8E0")] - public static extern int GetSystemMetricsForDpi(int nIndex, uint dpi); + public static extern int GetSystemMetricsForDpi(SystemMetric nIndex, uint dpi); /// Retrieves the value of one of the system-wide parameters, taking into account the provided DPI value. ///