24 references to SYSTEM_METRICS_INDEX
System.Drawing.Common (3)
System\Drawing\Graphics.cs (1)
3565(((PInvokeCore.GetSystemMetrics(SYSTEM_METRICS_INDEX.SM_REMOTESESSION) & 0x00000001) != 0) && (error == 0)))
System\Drawing\Icon.cs (2)
423width = PInvokeCore.GetSystemMetrics(SYSTEM_METRICS_INDEX.SM_CXICON); 428height = PInvokeCore.GetSystemMetrics(SYSTEM_METRICS_INDEX.SM_CYICON);
System.Private.Windows.Core (1)
Windows.Win32.PInvokeCore.USER32.dll.g.cs (1)
601 internal static extern int GetSystemMetrics(winmdroot.UI.WindowsAndMessaging.SYSTEM_METRICS_INDEX nIndex);
System.Windows.Forms (9)
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.CalendarButtonAccessibleObject.cs (5)
72bool mouseSwapped = PInvokeCore.GetSystemMetrics(SYSTEM_METRICS_INDEX.SM_SWAPBUTTON) != 0; 93int vscreenWidth = PInvokeCore.GetSystemMetrics(SYSTEM_METRICS_INDEX.SM_CXVIRTUALSCREEN); 94int vscreenHeight = PInvokeCore.GetSystemMetrics(SYSTEM_METRICS_INDEX.SM_CYVIRTUALSCREEN); 95int vscreenLeft = PInvokeCore.GetSystemMetrics(SYSTEM_METRICS_INDEX.SM_XVIRTUALSCREEN); 96int vscreenTop = PInvokeCore.GetSystemMetrics(SYSTEM_METRICS_INDEX.SM_YVIRTUALSCREEN);
System\Windows\Forms\Controls\TrackBar\TrackBar.cs (1)
423int cyhscroll = PInvokeCore.GetSystemMetrics(SYSTEM_METRICS_INDEX.SM_CYHSCROLL);
System\Windows\Forms\SystemInformation.cs (3)
11using static Windows.Win32.UI.WindowsAndMessaging.SYSTEM_METRICS_INDEX; 814private static Size GetSize(SYSTEM_METRICS_INDEX x, SYSTEM_METRICS_INDEX y)
System.Windows.Forms.Primitives (9)
System\Windows\Forms\Internals\ScaleHelper.cs (6)
306PInvokeCore.GetSystemMetrics(SYSTEM_METRICS_INDEX.SM_CXICON), 307PInvokeCore.GetSystemMetrics(SYSTEM_METRICS_INDEX.SM_CYICON)); 311PInvoke.GetSystemMetricsForDpi(SYSTEM_METRICS_INDEX.SM_CXSMICON, OneHundredPercentLogicalDpi), 312PInvoke.GetSystemMetricsForDpi(SYSTEM_METRICS_INDEX.SM_CXSMICON, OneHundredPercentLogicalDpi)) 429int width = PInvoke.GetCurrentSystemMetrics(SYSTEM_METRICS_INDEX.SM_CXSMICON, (uint)dpi); 430int height = PInvoke.GetCurrentSystemMetrics(SYSTEM_METRICS_INDEX.SM_CYSMICON, (uint)dpi);
Windows.Win32.PInvoke.USER32.dll.g.cs (2)
1860 internal static int GetSystemMetricsForDpi(winmdroot.UI.WindowsAndMessaging.SYSTEM_METRICS_INDEX nIndex, uint dpi) 1868 static extern int LocalExternFunction(winmdroot.UI.WindowsAndMessaging.SYSTEM_METRICS_INDEX nIndex, uint dpi);
Windows\Win32\PInvoke.GetSystemMetrics.cs (1)
12public static int GetCurrentSystemMetrics(SYSTEM_METRICS_INDEX nIndex, uint dpi)
System.Windows.Forms.Tests (2)
System\Windows\Forms\ErrorProviderTests.cs (2)
33Assert.Equal(provider.Icon.Width, PInvokeCore.GetSystemMetrics(SYSTEM_METRICS_INDEX.SM_CXSMICON)); 34Assert.Equal(provider.Icon.Height, PInvokeCore.GetSystemMetrics(SYSTEM_METRICS_INDEX.SM_CYSMICON));