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)
423
width = PInvokeCore.GetSystemMetrics(
SYSTEM_METRICS_INDEX
.SM_CXICON);
428
height = 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)
72
bool mouseSwapped = PInvokeCore.GetSystemMetrics(
SYSTEM_METRICS_INDEX
.SM_SWAPBUTTON) != 0;
93
int vscreenWidth = PInvokeCore.GetSystemMetrics(
SYSTEM_METRICS_INDEX
.SM_CXVIRTUALSCREEN);
94
int vscreenHeight = PInvokeCore.GetSystemMetrics(
SYSTEM_METRICS_INDEX
.SM_CYVIRTUALSCREEN);
95
int vscreenLeft = PInvokeCore.GetSystemMetrics(
SYSTEM_METRICS_INDEX
.SM_XVIRTUALSCREEN);
96
int vscreenTop = PInvokeCore.GetSystemMetrics(
SYSTEM_METRICS_INDEX
.SM_YVIRTUALSCREEN);
System\Windows\Forms\Controls\TrackBar\TrackBar.cs (1)
423
int cyhscroll = PInvokeCore.GetSystemMetrics(
SYSTEM_METRICS_INDEX
.SM_CYHSCROLL);
System\Windows\Forms\SystemInformation.cs (3)
11
using static Windows.Win32.UI.WindowsAndMessaging.
SYSTEM_METRICS_INDEX
;
814
private static Size GetSize(
SYSTEM_METRICS_INDEX
x,
SYSTEM_METRICS_INDEX
y)
System.Windows.Forms.Primitives (9)
System\Windows\Forms\Internals\ScaleHelper.cs (6)
306
PInvokeCore.GetSystemMetrics(
SYSTEM_METRICS_INDEX
.SM_CXICON),
307
PInvokeCore.GetSystemMetrics(
SYSTEM_METRICS_INDEX
.SM_CYICON));
311
PInvoke.GetSystemMetricsForDpi(
SYSTEM_METRICS_INDEX
.SM_CXSMICON, OneHundredPercentLogicalDpi),
312
PInvoke.GetSystemMetricsForDpi(
SYSTEM_METRICS_INDEX
.SM_CXSMICON, OneHundredPercentLogicalDpi))
429
int width = PInvoke.GetCurrentSystemMetrics(
SYSTEM_METRICS_INDEX
.SM_CXSMICON, (uint)dpi);
430
int 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)
12
public static int GetCurrentSystemMetrics(
SYSTEM_METRICS_INDEX
nIndex, uint dpi)
System.Windows.Forms.Tests (2)
System\Windows\Forms\ErrorProviderTests.cs (2)
33
Assert.Equal(provider.Icon.Width, PInvokeCore.GetSystemMetrics(
SYSTEM_METRICS_INDEX
.SM_CXSMICON));
34
Assert.Equal(provider.Icon.Height, PInvokeCore.GetSystemMetrics(
SYSTEM_METRICS_INDEX
.SM_CYSMICON));