88 references to GetSystemMetrics
System.Windows.Forms (88)
winforms\Managed\System\WinForms\Cursor.cs (2)
332
UnsafeNativeMethods.
GetSystemMetrics
(NativeMethods.SM_CXCURSOR),
333
UnsafeNativeMethods.
GetSystemMetrics
(NativeMethods.SM_CYCURSOR)
winforms\Managed\System\WinForms\Screen.cs (1)
68
private static bool multiMonitorSupport = (UnsafeNativeMethods.
GetSystemMetrics
(NativeMethods.SM_CMONITORS) != 0);
winforms\Managed\System\WinForms\SystemInformation.cs (83)
163
return new Size(UnsafeNativeMethods.
GetSystemMetrics
(NativeMethods.SM_CXSCREEN),
164
UnsafeNativeMethods.
GetSystemMetrics
(NativeMethods.SM_CYSCREEN));
176
return UnsafeNativeMethods.
GetSystemMetrics
(NativeMethods.SM_CXVSCROLL);
190
return UnsafeNativeMethods.
GetSystemMetrics
(NativeMethods.SM_CXVSCROLL);
202
return UnsafeNativeMethods.
GetSystemMetrics
(NativeMethods.SM_CYHSCROLL);
216
return UnsafeNativeMethods.
GetSystemMetrics
(NativeMethods.SM_CYHSCROLL);
228
return UnsafeNativeMethods.
GetSystemMetrics
(NativeMethods.SM_CYCAPTION);
241
return new Size(UnsafeNativeMethods.
GetSystemMetrics
(NativeMethods.SM_CXBORDER),
242
UnsafeNativeMethods.
GetSystemMetrics
(NativeMethods.SM_CYBORDER));
271
return new Size(UnsafeNativeMethods.
GetSystemMetrics
(NativeMethods.SM_CXFIXEDFRAME),
272
UnsafeNativeMethods.
GetSystemMetrics
(NativeMethods.SM_CYFIXEDFRAME));
282
return UnsafeNativeMethods.
GetSystemMetrics
(NativeMethods.SM_CYVTHUMB);
292
return UnsafeNativeMethods.
GetSystemMetrics
(NativeMethods.SM_CXHTHUMB);
335
return new Size(UnsafeNativeMethods.
GetSystemMetrics
(NativeMethods.SM_CXICON),
336
UnsafeNativeMethods.
GetSystemMetrics
(NativeMethods.SM_CYICON));
348
return new Size(UnsafeNativeMethods.
GetSystemMetrics
(NativeMethods.SM_CXCURSOR),
349
UnsafeNativeMethods.
GetSystemMetrics
(NativeMethods.SM_CYCURSOR));
417
return UnsafeNativeMethods.
GetSystemMetrics
(NativeMethods.SM_CYMENU);
464
return UnsafeNativeMethods.
GetSystemMetrics
(NativeMethods.SM_CYKANJIWINDOW);
477
return UnsafeNativeMethods.
GetSystemMetrics
(NativeMethods.SM_MOUSEPRESENT) != 0;
489
return UnsafeNativeMethods.
GetSystemMetrics
(NativeMethods.SM_CYVSCROLL);
509
return UnsafeNativeMethods.
GetSystemMetrics
(NativeMethods.SM_CXHSCROLL);
524
return UnsafeNativeMethods.
GetSystemMetrics
(NativeMethods.SM_CXHSCROLL);
539
return UnsafeNativeMethods.
GetSystemMetrics
(NativeMethods.SM_DEBUG) != 0;
552
return(UnsafeNativeMethods.
GetSystemMetrics
(NativeMethods.SM_SWAPBUTTON) != 0);
564
return new Size(UnsafeNativeMethods.
GetSystemMetrics
(NativeMethods.SM_CXMIN),
565
UnsafeNativeMethods.
GetSystemMetrics
(NativeMethods.SM_CYMIN));
578
return new Size(UnsafeNativeMethods.
GetSystemMetrics
(NativeMethods.SM_CXSIZE),
579
UnsafeNativeMethods.
GetSystemMetrics
(NativeMethods.SM_CYSIZE));
591
return new Size(UnsafeNativeMethods.
GetSystemMetrics
(NativeMethods.SM_CXFRAME),
592
UnsafeNativeMethods.
GetSystemMetrics
(NativeMethods.SM_CYFRAME));
605
return new Size(UnsafeNativeMethods.
GetSystemMetrics
(NativeMethods.SM_CXMINTRACK),
606
UnsafeNativeMethods.
GetSystemMetrics
(NativeMethods.SM_CYMINTRACK));
620
return new Size(UnsafeNativeMethods.
GetSystemMetrics
(NativeMethods.SM_CXDOUBLECLK),
621
UnsafeNativeMethods.
GetSystemMetrics
(NativeMethods.SM_CYDOUBLECLK));
648
return new Size(UnsafeNativeMethods.
GetSystemMetrics
(NativeMethods.SM_CXICONSPACING),
649
UnsafeNativeMethods.
GetSystemMetrics
(NativeMethods.SM_CYICONSPACING));
662
return UnsafeNativeMethods.
GetSystemMetrics
(NativeMethods.SM_MENUDROPALIGNMENT) != 0;
675
return UnsafeNativeMethods.
GetSystemMetrics
(NativeMethods.SM_PENWINDOWS) != 0;
688
return UnsafeNativeMethods.
GetSystemMetrics
(NativeMethods.SM_DBCSENABLED) != 0;
700
return UnsafeNativeMethods.
GetSystemMetrics
(NativeMethods.SM_CMOUSEBUTTONS);
714
return UnsafeNativeMethods.
GetSystemMetrics
(NativeMethods.SM_SECURE) != 0;
727
return new Size(UnsafeNativeMethods.
GetSystemMetrics
(NativeMethods.SM_CXEDGE),
728
UnsafeNativeMethods.
GetSystemMetrics
(NativeMethods.SM_CYEDGE));
740
return new Size(UnsafeNativeMethods.
GetSystemMetrics
(NativeMethods.SM_CXMINSPACING),
741
UnsafeNativeMethods.
GetSystemMetrics
(NativeMethods.SM_CYMINSPACING));
754
return new Size(UnsafeNativeMethods.
GetSystemMetrics
(NativeMethods.SM_CXSMICON),
755
UnsafeNativeMethods.
GetSystemMetrics
(NativeMethods.SM_CYSMICON));
768
return UnsafeNativeMethods.
GetSystemMetrics
(NativeMethods.SM_CYSMCAPTION);
781
return new Size(UnsafeNativeMethods.
GetSystemMetrics
(NativeMethods.SM_CXSMSIZE),
782
UnsafeNativeMethods.
GetSystemMetrics
(NativeMethods.SM_CYSMSIZE));
795
return new Size(UnsafeNativeMethods.
GetSystemMetrics
(NativeMethods.SM_CXMENUSIZE),
796
UnsafeNativeMethods.
GetSystemMetrics
(NativeMethods.SM_CYMENUSIZE));
807
int compoundValue = UnsafeNativeMethods.
GetSystemMetrics
(NativeMethods.SM_ARRANGE);
821
int compoundValue = UnsafeNativeMethods.
GetSystemMetrics
(NativeMethods.SM_ARRANGE);
834
return new Size(UnsafeNativeMethods.
GetSystemMetrics
(NativeMethods.SM_CXMINIMIZED),
835
UnsafeNativeMethods.
GetSystemMetrics
(NativeMethods.SM_CYMINIMIZED));
848
return new Size(UnsafeNativeMethods.
GetSystemMetrics
(NativeMethods.SM_CXMAXTRACK),
849
UnsafeNativeMethods.
GetSystemMetrics
(NativeMethods.SM_CYMAXTRACK));
862
return new Size(UnsafeNativeMethods.
GetSystemMetrics
(NativeMethods.SM_CXMAXIMIZED),
863
UnsafeNativeMethods.
GetSystemMetrics
(NativeMethods.SM_CYMAXIMIZED));
875
return(UnsafeNativeMethods.
GetSystemMetrics
(NativeMethods.SM_NETWORK) & 0x00000001) != 0;
887
return(UnsafeNativeMethods.
GetSystemMetrics
(NativeMethods.SM_REMOTESESSION) & 0x00000001) != 0;
903
return(BootMode) UnsafeNativeMethods.
GetSystemMetrics
(NativeMethods.SM_CLEANBOOT);
917
return new Size(UnsafeNativeMethods.
GetSystemMetrics
(NativeMethods.SM_CXDRAG),
918
UnsafeNativeMethods.
GetSystemMetrics
(NativeMethods.SM_CYDRAG));
932
return UnsafeNativeMethods.
GetSystemMetrics
(NativeMethods.SM_SHOWSOUNDS) != 0;
945
return new Size(UnsafeNativeMethods.
GetSystemMetrics
(NativeMethods.SM_CXMENUCHECK),
946
UnsafeNativeMethods.
GetSystemMetrics
(NativeMethods.SM_CYMENUCHECK));
959
return UnsafeNativeMethods.
GetSystemMetrics
(NativeMethods.SM_MIDEASTENABLED) != 0;
966
multiMonitorSupport = (UnsafeNativeMethods.
GetSystemMetrics
(NativeMethods.SM_CMONITORS) != 0);
983
nativeMouseWheelSupport = (UnsafeNativeMethods.
GetSystemMetrics
(NativeMethods.SM_MOUSEWHEELPRESENT) != 0);
1017
mouseWheelPresent = (UnsafeNativeMethods.
GetSystemMetrics
(NativeMethods.SM_MOUSEWHEELPRESENT) != 0);
1034
return new Rectangle(UnsafeNativeMethods.
GetSystemMetrics
(NativeMethods.SM_XVIRTUALSCREEN),
1035
UnsafeNativeMethods.
GetSystemMetrics
(NativeMethods.SM_YVIRTUALSCREEN),
1036
UnsafeNativeMethods.
GetSystemMetrics
(NativeMethods.SM_CXVIRTUALSCREEN),
1037
UnsafeNativeMethods.
GetSystemMetrics
(NativeMethods.SM_CYVIRTUALSCREEN));
1056
return UnsafeNativeMethods.
GetSystemMetrics
(NativeMethods.SM_CMONITORS);
1075
return UnsafeNativeMethods.
GetSystemMetrics
(NativeMethods.SM_SAMEDISPLAYFORMAT) != 0;
1731
return UnsafeNativeMethods.
GetSystemMetrics
(NativeMethods.SM_CYFOCUSBORDER);
1749
return UnsafeNativeMethods.
GetSystemMetrics
(NativeMethods.SM_CXFOCUSBORDER);
1766
return UnsafeNativeMethods.
GetSystemMetrics
(NativeMethods.SM_CYSIZEFRAME);
1779
return UnsafeNativeMethods.
GetSystemMetrics
(NativeMethods.SM_CXSIZEFRAME);
winforms\Managed\System\WinForms\TrackBar.cs (1)
501
int cyhscroll = UnsafeNativeMethods.
GetSystemMetrics
(NativeMethods.SM_CYHSCROLL);
winforms\Managed\System\WinForms\UnsafeNativeMethods.cs (1)
1151
return
GetSystemMetrics
(nIndex);