422 references to IntSecurity
System.Windows.Forms (422)
winforms\Managed\System\WinForms\AccessibleObject.cs (108)
438
IntSecurity
.DemandFileIO(FileIOPermissionAccess.PathDiscovery, fileName);
1263
IntSecurity
.UnmanagedCode.Demand();
1422
IntSecurity
.UnmanagedCode.Demand();
1472
IntSecurity
.UnmanagedCode.Demand();
1897
IntSecurity
.UnmanagedCode.Demand();
2022
IntSecurity
.UnmanagedCode.Demand();
2099
IntSecurity
.UnmanagedCode.Demand();
2837
IntSecurity
.UnmanagedCode.Assert();
2857
IntSecurity
.UnmanagedCode.Assert();
2913
IntSecurity
.UnmanagedCode.Assert();
2987
IntSecurity
.UnmanagedCode.Assert();
3129
IntSecurity
.UnmanagedCode.Assert();
3134
IntSecurity
.UnmanagedCode.Assert();
3139
IntSecurity
.UnmanagedCode.Assert();
3144
IntSecurity
.UnmanagedCode.Assert();
3149
IntSecurity
.UnmanagedCode.Assert();
3154
IntSecurity
.UnmanagedCode.Assert();
3159
IntSecurity
.UnmanagedCode.Assert();
3164
IntSecurity
.UnmanagedCode.Assert();
3169
IntSecurity
.UnmanagedCode.Assert();
3174
IntSecurity
.UnmanagedCode.Assert();
3179
IntSecurity
.UnmanagedCode.Assert();
3184
IntSecurity
.UnmanagedCode.Assert();
3189
IntSecurity
.UnmanagedCode.Assert();
3194
IntSecurity
.UnmanagedCode.Assert();
3199
IntSecurity
.UnmanagedCode.Assert();
3204
IntSecurity
.UnmanagedCode.Assert();
3209
IntSecurity
.UnmanagedCode.Assert();
3214
IntSecurity
.UnmanagedCode.Assert();
3219
IntSecurity
.UnmanagedCode.Assert();
3224
IntSecurity
.UnmanagedCode.Assert();
3229
IntSecurity
.UnmanagedCode.Assert();
3238
IntSecurity
.UnmanagedCode.Assert();
3243
IntSecurity
.UnmanagedCode.Assert();
3248
IntSecurity
.UnmanagedCode.Assert();
3253
IntSecurity
.UnmanagedCode.Assert();
3262
IntSecurity
.UnmanagedCode.Assert();
3267
IntSecurity
.UnmanagedCode.Assert();
3316
IntSecurity
.UnmanagedCode.Demand();
3332
IntSecurity
.UnmanagedCode.Assert();
3349
IntSecurity
.UnmanagedCode.Assert();
3355
IntSecurity
.UnmanagedCode.Assert();
3365
IntSecurity
.UnmanagedCode.Assert();
3371
IntSecurity
.UnmanagedCode.Assert();
3381
IntSecurity
.UnmanagedCode.Assert();
3388
IntSecurity
.UnmanagedCode.Assert();
3394
IntSecurity
.UnmanagedCode.Assert();
3447
IntSecurity
.UnmanagedCode.Assert();
3456
IntSecurity
.UnmanagedCode.Assert();
3461
IntSecurity
.UnmanagedCode.Assert();
3466
IntSecurity
.UnmanagedCode.Assert();
3471
IntSecurity
.UnmanagedCode.Assert();
3477
IntSecurity
.UnmanagedCode.Assert();
3484
IntSecurity
.UnmanagedCode.Assert();
3498
IntSecurity
.UnmanagedCode.Assert();
3503
IntSecurity
.UnmanagedCode.Assert();
3513
IntSecurity
.UnmanagedCode.Assert();
3520
IntSecurity
.UnmanagedCode.Assert();
3527
IntSecurity
.UnmanagedCode.Assert();
3534
IntSecurity
.UnmanagedCode.Assert();
3541
IntSecurity
.UnmanagedCode.Assert();
3548
IntSecurity
.UnmanagedCode.Assert();
3555
IntSecurity
.UnmanagedCode.Assert();
3562
IntSecurity
.UnmanagedCode.Assert();
3569
IntSecurity
.UnmanagedCode.Assert();
3575
IntSecurity
.UnmanagedCode.Assert();
3580
IntSecurity
.UnmanagedCode.Assert();
3585
IntSecurity
.UnmanagedCode.Assert();
3590
IntSecurity
.UnmanagedCode.Assert();
3595
IntSecurity
.UnmanagedCode.Assert();
3604
IntSecurity
.UnmanagedCode.Assert();
3614
IntSecurity
.UnmanagedCode.Assert();
3621
IntSecurity
.UnmanagedCode.Assert();
3627
IntSecurity
.UnmanagedCode.Assert();
3637
IntSecurity
.UnmanagedCode.Assert();
3644
IntSecurity
.UnmanagedCode.Assert();
3651
IntSecurity
.UnmanagedCode.Assert();
3658
IntSecurity
.UnmanagedCode.Assert();
3665
IntSecurity
.UnmanagedCode.Assert();
3672
IntSecurity
.UnmanagedCode.Assert();
3678
IntSecurity
.UnmanagedCode.Assert();
3687
IntSecurity
.UnmanagedCode.Assert();
3692
IntSecurity
.UnmanagedCode.Assert();
3698
IntSecurity
.UnmanagedCode.Assert();
3708
IntSecurity
.UnmanagedCode.Assert();
3714
IntSecurity
.UnmanagedCode.Assert();
3724
IntSecurity
.UnmanagedCode.Assert();
3729
IntSecurity
.UnmanagedCode.Assert();
3735
IntSecurity
.UnmanagedCode.Assert();
3745
IntSecurity
.UnmanagedCode.Assert();
3750
IntSecurity
.UnmanagedCode.Assert();
3759
IntSecurity
.UnmanagedCode.Assert();
3765
IntSecurity
.UnmanagedCode.Assert();
3772
IntSecurity
.UnmanagedCode.Assert();
3783
IntSecurity
.UnmanagedCode.Assert();
3790
IntSecurity
.UnmanagedCode.Assert();
3797
IntSecurity
.UnmanagedCode.Assert();
3804
IntSecurity
.UnmanagedCode.Assert();
3811
IntSecurity
.UnmanagedCode.Assert();
3831
IntSecurity
.UnmanagedCode.Assert();
3842
IntSecurity
.UnmanagedCode.Assert();
3854
IntSecurity
.UnmanagedCode.Assert();
3868
IntSecurity
.UnmanagedCode.Assert();
3876
IntSecurity
.UnmanagedCode.Assert();
3884
IntSecurity
.UnmanagedCode.Assert();
3894
IntSecurity
.UnmanagedCode.Assert();
3905
IntSecurity
.UnmanagedCode.Assert();
3921
IntSecurity
.UnmanagedCode.Assert();
winforms\Managed\System\WinForms\Application.cs (20)
340
Debug.WriteLineIf(
IntSecurity
.SecurityDemand.TraceVerbose, "AffectThreadBehavior Demanded");
341
IntSecurity
.AffectThreadBehavior.Demand();
371
executablePath =
IntSecurity
.UnsafeGetFullPath(sb.ToString());
386
Debug.WriteLineIf(
IntSecurity
.SecurityDemand.TraceVerbose, "FileIO(" + executablePath + ") Demanded");
623
Debug.WriteLineIf(
IntSecurity
.SecurityDemand.TraceVerbose, "WindowAdornmentModification Demanded");
624
IntSecurity
.WindowAdornmentModification.Demand();
648
Debug.WriteLineIf(
IntSecurity
.SecurityDemand.TraceVerbose, "FileIO(" + startupPath + ") Demanded");
861
Debug.WriteLineIf(
IntSecurity
.SecurityDemand.TraceVerbose, "ManipulateWndProcAndHandles Demanded");
862
IntSecurity
.UnmanagedCode.Demand();
975
Debug.WriteLineIf(
IntSecurity
.SecurityDemand.TraceVerbose, "AffectThreadBehavior Demanded");
976
IntSecurity
.AffectThreadBehavior.Demand();
1102
Debug.WriteLineIf(
IntSecurity
.SecurityDemand.TraceVerbose, "AffectThreadBehavior Demanded");
1103
IntSecurity
.AffectThreadBehavior.Demand();
1155
Debug.WriteLineIf(
IntSecurity
.SecurityDemand.TraceVerbose, "AffectThreadBehavior Demanded");
1156
IntSecurity
.AffectThreadBehavior.Demand();
1542
IntSecurity
.AffectMachineState.Demand();
1575
Debug.WriteLineIf(
IntSecurity
.SecurityDemand.TraceVerbose, "AffectThreadBehavior Demanded");
1576
IntSecurity
.AffectThreadBehavior.Demand();
2606
IntSecurity
.ManipulateWndProcAndHandles.Assert();
3251
IntSecurity
.ModifyFocus.Assert();
winforms\Managed\System\WinForms\AxHost.cs (5)
2282
Debug.WriteLineIf(
IntSecurity
.SecurityDemand.TraceVerbose, "GetParent Demanded");
2283
IntSecurity
.GetParent.Demand();
4622
Debug.WriteLineIf(
IntSecurity
.SecurityDemand.TraceVerbose, "GetParent Demanded");
4623
IntSecurity
.GetParent.Demand();
6849
IntSecurity
.UnmanagedCode.Demand();
winforms\Managed\System\WinForms\BindingContext.cs (3)
51
IntSecurity
.UnmanagedCode.Demand();
65
IntSecurity
.UnmanagedCode.Demand();
381
IntSecurity
.UnmanagedCode.Demand();
winforms\Managed\System\WinForms\ButtonBase.cs (2)
826
IntSecurity
.AllWindows.Assert();
850
IntSecurity
.AllWindows.Assert();
winforms\Managed\System\WinForms\Clipboard.cs (4)
139
IntSecurity
.ClipboardRead.Demand();
167
IntSecurity
.UnmanagedCode.Assert();
215
Debug.WriteLineIf(
IntSecurity
.SecurityDemand.TraceVerbose, "ClipboardRead Demanded");
216
IntSecurity
.ClipboardRead.Demand();
winforms\Managed\System\WinForms\ComboBox.cs (3)
3932
IntSecurity
.UnmanagedCode.Assert();
3964
IntSecurity
.UnmanagedCode.Assert();
3981
IntSecurity
.UnmanagedCode.Assert();
winforms\Managed\System\WinForms\CommonDialog.cs (1)
267
IntSecurity
.SafeSubWindows.Demand();
winforms\Managed\System\WinForms\ContainerControl.cs (8)
354
Debug.WriteLineIf(
IntSecurity
.SecurityDemand.TraceVerbose, "GetParent Demanded");
355
IntSecurity
.GetParent.Demand();
382
Debug.WriteLineIf(
IntSecurity
.SecurityDemand.TraceVerbose, "ModifyFocus Demanded");
383
IntSecurity
.ModifyFocus.Demand();
473
IntSecurity
.ModifyFocus.Assert ();
509
IntSecurity
.ModifyFocus.Assert ();
822
IntSecurity
.ModifyFocus.Assert();
1913
IntSecurity
.ModifyFocus.Assert();
winforms\Managed\System\WinForms\Control.cs (68)
877
IntSecurity
.ClipboardRead.Demand();
1465
Debug.WriteLineIf(
IntSecurity
.SecurityDemand.TraceVerbose, "GetCapture Demanded");
1466
IntSecurity
.GetCapture.Demand();
2074
Debug.WriteLineIf(
IntSecurity
.SecurityDemand.TraceVerbose, "ModifyCursor Demanded");
2075
IntSecurity
.ModifyCursor.Demand();
3432
Debug.WriteLineIf(
IntSecurity
.SecurityDemand.TraceVerbose, "GetParent Demanded");
3433
IntSecurity
.GetParent.Demand();
3568
Debug.WriteLineIf(
IntSecurity
.SecurityDemand.TraceVerbose, "ChangeWindowRegion Demanded");
3569
IntSecurity
.ChangeWindowRegionForTopLevel.Demand();
4123
Debug.WriteLineIf(
IntSecurity
.SecurityDemand.TraceVerbose, "GetParent Demanded");
4124
IntSecurity
.GetParent.Demand();
5752
Debug.WriteLineIf(
IntSecurity
.SecurityDemand.TraceVerbose, "CreateGraphicsForControl Demanded");
5753
IntSecurity
.CreateGraphicsForControl.Demand();
6352
Debug.WriteLineIf(
IntSecurity
.SecurityDemand.TraceVerbose, "ModifyFocus Demanded");
6353
IntSecurity
.ModifyFocus.Demand();
6399
Debug.WriteLineIf(
IntSecurity
.SecurityDemand.TraceVerbose, "ControlFromHandleOrLocation Demanded");
6400
IntSecurity
.ControlFromHandleOrLocation.Demand();
6420
Debug.WriteLineIf(
IntSecurity
.SecurityDemand.TraceVerbose, "ControlFromHandleOrLocation Demanded");
6421
IntSecurity
.ControlFromHandleOrLocation.Demand();
6499
Debug.WriteLineIf(
IntSecurity
.SecurityDemand.TraceVerbose, "ControlFromHandleOrLocation Demanded");
6500
IntSecurity
.ControlFromHandleOrLocation.Demand();
6522
Debug.WriteLineIf(
IntSecurity
.SecurityDemand.TraceVerbose, "GetParent Demanded");
6523
IntSecurity
.GetParent.Demand();
7051
IntSecurity
.AllWindows.Demand();
7797
IntSecurity
.UnmanagedCode.Demand();
8775
IntSecurity
.UnmanagedCode.Assert();
10175
IntSecurity
.ModifyFocus.Assert();
11089
Debug.WriteLineIf(
IntSecurity
.SecurityDemand.TraceVerbose, "SendMessages Demanded");
11090
IntSecurity
.SendMessages.Demand();
11242
IntSecurity
.ClipboardRead.Demand();
12044
IntSecurity
.UnmanagedCode.Demand();
12075
Debug.WriteLineIf(
IntSecurity
.SecurityDemand.TraceVerbose, "TopLevelWindow Demanded");
12076
IntSecurity
.TopLevelWindow.Demand();
12079
Debug.WriteLineIf(
IntSecurity
.SecurityDemand.TraceVerbose, "UnrestrictedWindows Demanded");
12080
IntSecurity
.UnrestrictedWindows.Demand();
13037
IntSecurity
.UnmanagedCode.Assert();
13059
IntSecurity
.UnmanagedCode.Assert();
13108
IntSecurity
.UnmanagedCode.Assert();
13902
IntSecurity
.ModifyFocus.Assert();
16378
IntSecurity
.ObjectFromWin32Handle.Assert();
16831
IntSecurity
.UnmanagedCode.Assert();
17198
IntSecurity
.UnmanagedCode.Assert();
17262
IntSecurity
.UnmanagedCode.Assert();
17318
IntSecurity
.UnmanagedCode.Assert();
17566
IntSecurity
.UnmanagedCode.Assert();
17585
IntSecurity
.UnmanagedCode.Assert();
17629
IntSecurity
.UnmanagedCode.Assert();
17664
IntSecurity
.UnmanagedCode.Assert();
17688
IntSecurity
.UnmanagedCode.Assert();
17988
IntSecurity
.UnmanagedCode.Assert();
18010
IntSecurity
.UnmanagedCode.Assert();
18085
IntSecurity
.UnmanagedCode.Assert();
18162
IntSecurity
.UnmanagedCode.Assert();
18562
IntSecurity
.UnmanagedCode.Assert();
18594
IntSecurity
.UnmanagedCode.Assert();
18654
IntSecurity
.UnmanagedCode.Assert();
18687
IntSecurity
.UnmanagedCode.Assert();
18713
IntSecurity
.UnmanagedCode.Assert();
18753
IntSecurity
.UnmanagedCode.Assert();
18870
IntSecurity
.UnmanagedCode.Assert();
18891
IntSecurity
.UnmanagedCode.Demand();
18953
IntSecurity
.ObjectFromWin32Handle.Assert();
18990
IntSecurity
.UnmanagedCode.Assert();
19000
IntSecurity
.ObjectFromWin32Handle.Assert();
19437
IntSecurity
.UnmanagedCode.Assert();
19465
IntSecurity
.UnmanagedCode.Assert();
19635
IntSecurity
.UnmanagedCode.Demand();
19846
IntSecurity
.DemandFileIO(FileIOPermissionAccess.PathDiscovery, fileName);
winforms\Managed\System\WinForms\ControlPaint.cs (1)
2069
IntSecurity
.ObjectFromWin32Handle.Assert();
winforms\Managed\System\WinForms\Cursor.cs (10)
103
IntSecurity
.UnmanagedCode.Demand();
171
Debug.WriteLineIf(
IntSecurity
.SecurityDemand.TraceVerbose, "AdjustCursorClip Demanded");
172
IntSecurity
.AdjustCursorClip.Demand();
213
Debug.WriteLineIf(
IntSecurity
.SecurityDemand.TraceVerbose, "ModifyCursor Demanded");
214
IntSecurity
.ModifyCursor.Demand();
225
IntSecurity
.UnmanagedCode.Assert();
267
IntSecurity
.ObjectFromWin32Handle.Assert();
316
IntSecurity
.AdjustCursorPosition.Demand();
565
Debug.WriteLineIf(
IntSecurity
.SecurityDemand.TraceVerbose, "AdjustCursorClip Demanded");
566
IntSecurity
.AdjustCursorClip.Demand();
winforms\Managed\System\WinForms\DataGrid.cs (5)
5788
IntSecurity
.ObjectFromWin32Handle.Assert();
8291
IntSecurity
.ModifyFocus.Assert();
8318
IntSecurity
.ModifyFocus.Assert();
8371
IntSecurity
.ModifyFocus.Assert();
8426
IntSecurity
.ModifyFocus.Assert();
winforms\Managed\System\WinForms\DataGridView.cs (2)
2852
IntSecurity
.UnmanagedCode.Assert();
3709
IntSecurity
.AllWindows.Demand();
winforms\Managed\System\WinForms\DataGridViewMethods.cs (3)
5448
IntSecurity
.ObjectFromWin32Handle.Assert();
20639
IntSecurity
.AllWindows.Demand();
20671
IntSecurity
.ModifyFocus.Assert();
winforms\Managed\System\WinForms\DataGridViewToolTip.cs (1)
63
IntSecurity
.AllWindows.Assert();
winforms\Managed\System\WinForms\DataObject.cs (8)
1405
IntSecurity
.UnmanagedCode.Assert();
1550
IntSecurity
.UnmanagedCode.Assert();
1606
IntSecurity
.UnmanagedCode.Assert();
1632
IntSecurity
.ObjectFromWin32Handle.Assert();
1856
Debug.WriteLineIf(
IntSecurity
.SecurityDemand.TraceVerbose, "FileIO(" + fullPath + ") Demanded");
2000
IntSecurity
.ClipboardRead.Demand();
2003
IntSecurity
.UnmanagedCode.Assert();
2016
IntSecurity
.UnmanagedCode.Assert();
winforms\Managed\System\WinForms\FileDialog.cs (23)
104
Debug.WriteLineIf(
IntSecurity
.SecurityDemand.TraceVerbose, "FileDialogCustomization Demanded");
105
IntSecurity
.FileDialogCustomization.Demand();
126
Debug.WriteLineIf(
IntSecurity
.SecurityDemand.TraceVerbose, "FileDialogCustomization Demanded");
127
IntSecurity
.FileDialogCustomization.Demand();
150
Debug.WriteLineIf(
IntSecurity
.SecurityDemand.TraceVerbose, "FileDialogCustomization Demanded");
151
IntSecurity
.FileDialogCustomization.Demand();
202
Debug.WriteLineIf(
IntSecurity
.SecurityDemand.TraceVerbose, "FileDialogCustomization Demanded");
203
IntSecurity
.FileDialogCustomization.Demand();
246
Debug.WriteLineIf(
IntSecurity
.SecurityDemand.TraceVerbose, "FileIO(" + fileNames[0] + ") Demanded");
247
IntSecurity
.DemandFileIO(FileIOPermissionAccess.AllAccess, fileNames[0]);
258
Debug.WriteLineIf(
IntSecurity
.SecurityDemand.TraceVerbose, "FileDialogCustomization Demanded");
259
IntSecurity
.FileDialogCustomization.Demand();
298
Debug.WriteLineIf(
IntSecurity
.SecurityDemand.TraceVerbose, "FileIO(" + file + ") Demanded");
299
IntSecurity
.DemandFileIO(FileIOPermissionAccess.AllAccess, file);
432
Debug.WriteLineIf(
IntSecurity
.SecurityDemand.TraceVerbose, "FileDialogCustomization Demanded");
433
IntSecurity
.FileDialogCustomization.Demand();
490
Debug.WriteLineIf(
IntSecurity
.SecurityDemand.TraceVerbose, "FileDialogCustomization Demanded");
491
IntSecurity
.FileDialogCustomization.Demand();
560
Debug.WriteLineIf(
IntSecurity
.SecurityDemand.TraceVerbose, "FileDialogCustomization Demanded");
561
IntSecurity
.FileDialogCustomization.Demand();
584
Debug.WriteLineIf(
IntSecurity
.SecurityDemand.TraceVerbose, "FileDialogCustomization Demanded");
585
IntSecurity
.FileDialogCustomization.Demand();
689
new FileIOPermission(FileIOPermissionAccess.Read,
IntSecurity
.UnsafeGetFullPath(fileName)).Assert();
winforms\Managed\System\WinForms\FolderBrowserDialog.cs (1)
134
Debug.WriteLineIf(
IntSecurity
.SecurityDemand.TraceVerbose, "FileIO(" + selectedPath + ") Demanded");
winforms\Managed\System\WinForms\FontDialog.cs (2)
565
IntSecurity
.ObjectFromWin32Handle.Assert();
689
IntSecurity
.UnmanagedCode.Assert();
winforms\Managed\System\WinForms\Form.cs (19)
432
Debug.WriteLineIf(
IntSecurity
.SecurityDemand.TraceVerbose, "GetParent Demanded");
433
IntSecurity
.GetParent.Demand();
1448
Debug.WriteLineIf(
IntSecurity
.SecurityDemand.TraceVerbose, "Checking for restricted window...");
1461
Debug.WriteLineIf(
IntSecurity
.SecurityDemand.TraceVerbose, "WindowAdornmentModification Demanded");
1462
IntSecurity
.WindowAdornmentModification.Demand();
1465
Debug.WriteLineIf(
IntSecurity
.SecurityDemand.TraceVerbose, "Caught security exception, we are restricted...");
1469
Debug.WriteLineIf(
IntSecurity
.SecurityDemand.TraceVerbose, "Caught non-security exception...");
1882
Debug.WriteLineIf(
IntSecurity
.SecurityDemand.TraceVerbose, "GetParent Demanded");
1883
IntSecurity
.GetParent.Demand();
2158
IntSecurity
.GetParent.Demand();
2612
IntSecurity
.TransparentWindows.Demand();
3083
Debug.WriteLineIf(
IntSecurity
.SecurityDemand.TraceVerbose, "ModifyFocus Demanded");
3084
IntSecurity
.ModifyFocus.Demand();
3105
Debug.WriteLineIf(
IntSecurity
.SecurityDemand.TraceVerbose, "ModifyFocus Demanded");
3106
IntSecurity
.ModifyFocus.Demand();
5004
IntSecurity
.AdjustCursorPosition.Assert();
5745
Debug.WriteLineIf(
IntSecurity
.SecurityDemand.TraceVerbose, "ModifyFocus Demanded");
5746
IntSecurity
.ModifyFocus.Demand();
5760
IntSecurity
.ModifyFocus.Assert();
winforms\Managed\System\WinForms\GroupBox.cs (1)
723
IntSecurity
.ModifyFocus.Assert();
winforms\Managed\System\WinForms\Help.cs (4)
194
IntSecurity
.UnmanagedCode.Demand();
290
Debug.WriteLineIf(
IntSecurity
.SecurityDemand.TraceVerbose, "WebPermission Demanded");
294
Debug.WriteLineIf(
IntSecurity
.SecurityDemand.TraceVerbose, "UnmanagedCode Demanded");
295
IntSecurity
.UnmanagedCode.Demand();
winforms\Managed\System\WinForms\ImageList.cs (1)
712
IntSecurity
.ObjectFromWin32Handle.Assert();
winforms\Managed\System\WinForms\InputLanguage.cs (1)
70
IntSecurity
.AffectThreadBehavior.Demand();
winforms\Managed\System\WinForms\Label.cs (3)
1401
IntSecurity
.AllWindows.Assert();
1428
IntSecurity
.AllWindows.Assert();
1648
IntSecurity
.ModifyFocus.Assert();
winforms\Managed\System\WinForms\LinkLabel.cs (2)
910
IntSecurity
.ModifyFocus.Assert();
2714
IntSecurity
.ObjectFromWin32Handle.Assert();
winforms\Managed\System\WinForms\ListBox.cs (1)
2277
IntSecurity
.UnmanagedCode.Assert();
winforms\Managed\System\WinForms\ListView.cs (2)
5776
IntSecurity
.ObjectFromWin32Handle.Assert();
6228
IntSecurity
.UnmanagedCode.Assert();
winforms\Managed\System\WinForms\MaskedTextBox.cs (3)
3006
IntSecurity
.ClipboardWrite.Assert();
3159
IntSecurity
.ClipboardRead.Assert();
3178
IntSecurity
.UnmanagedCode.Assert();
winforms\Managed\System\WinForms\MDIControlStrip.cs (1)
132
IntSecurity
.ObjectFromWin32Handle.Assert();
winforms\Managed\System\WinForms\MdiWindowListStrip.cs (2)
148
IntSecurity
.AllWindows.Assert();
181
IntSecurity
.ModifyFocus.Assert();
winforms\Managed\System\WinForms\Menu.cs (2)
327
Debug.WriteLineIf(
IntSecurity
.SecurityDemand.TraceVerbose, "ControlFromHandleOrLocation Demanded");
328
IntSecurity
.ControlFromHandleOrLocation.Demand();
winforms\Managed\System\WinForms\MenuItem.cs (2)
1796
IntSecurity
.ModifyFocus.Assert();
1836
IntSecurity
.AllWindows.Assert();
winforms\Managed\System\WinForms\Message.cs (1)
150
IntSecurity
.UnmanagedCode.Demand();
winforms\Managed\System\WinForms\MessageBox.cs (2)
447
IntSecurity
.UnmanagedCode.Demand();
450
IntSecurity
.SafeSubWindows.Demand();
winforms\Managed\System\WinForms\MonthCalendar.cs (1)
192
IntSecurity
.UnmanagedCode.Demand();
winforms\Managed\System\WinForms\NativeWindow.cs (4)
711
Debug.WriteLineIf(
IntSecurity
.SecurityDemand.TraceVerbose, "CreateAnyWindow Demanded");
712
IntSecurity
.CreateAnyWindow.Demand();
717
Debug.WriteLineIf(
IntSecurity
.SecurityDemand.TraceVerbose, "TopLevelWindow Demanded");
718
IntSecurity
.TopLevelWindow.Demand();
winforms\Managed\System\WinForms\NotifyIcon.cs (2)
691
IntSecurity
.UnrestrictedWindows.Demand();
766
IntSecurity
.UnrestrictedWindows.Demand();
winforms\Managed\System\WinForms\OpenFileDialog.cs (7)
144
Debug.WriteLineIf(
IntSecurity
.SecurityDemand.TraceVerbose, "FileDialogOpenFile Demanded");
145
IntSecurity
.FileDialogOpenFile.Demand();
158
new FileIOPermission(FileIOPermissionAccess.Read,
IntSecurity
.UnsafeGetFullPath(filename)).Assert();
184
Debug.WriteLineIf(
IntSecurity
.SecurityDemand.TraceVerbose, "FileDialogOpenFile Demanded in OpenFileDialog.RunFileDialog");
185
IntSecurity
.FileDialogOpenFile.Demand();
196
Debug.WriteLineIf(
IntSecurity
.SecurityDemand.TraceVerbose, "FileDialogOpenFile Demanded in OpenFileDialog.RunFileDialog");
197
IntSecurity
.FileDialogOpenFile.Demand();
winforms\Managed\System\WinForms\Printing\PageSetupDialog.cs (3)
320
IntSecurity
.AllPrintingAndUnmanagedCode.Assert();
353
IntSecurity
.SafePrinting.Demand();
408
IntSecurity
.AllPrintingAndUnmanagedCode.Assert();
winforms\Managed\System\WinForms\Printing\PrintDialog.cs (5)
354
IntSecurity
.SafePrinting.Demand();
380
IntSecurity
.AllPrintingAndUnmanagedCode.Assert();
420
IntSecurity
.AllPrintingAndUnmanagedCode.Assert();
463
IntSecurity
.AllPrintingAndUnmanagedCode.Assert();
515
IntSecurity
.AllPrintingAndUnmanagedCode.Assert();
winforms\Managed\System\WinForms\Printing\PrintPreviewControl.cs (1)
454
IntSecurity
.SafePrinting.Demand();
winforms\Managed\System\WinForms\RichTextBox.cs (6)
171
IntSecurity
.ClipboardRead.Demand();
489
IntSecurity
.ClipboardRead.Demand();
2702
Debug.WriteLineIf(
IntSecurity
.SecurityDemand.TraceVerbose, "ClipboardRead Demanded");
2703
IntSecurity
.ClipboardRead.Demand();
3258
IntSecurity
.UnmanagedCode.Demand();
3820
IntSecurity
.UnmanagedCode.Demand();
winforms\Managed\System\WinForms\SaveFileDialog.cs (11)
53
Debug.WriteLineIf(
IntSecurity
.SecurityDemand.TraceVerbose, "FileDialogCustomization Demanded");
54
IntSecurity
.FileDialogCustomization.Demand();
76
Debug.WriteLineIf(
IntSecurity
.SecurityDemand.TraceVerbose, "FileDialogCustomization Demanded");
77
IntSecurity
.FileDialogCustomization.Demand();
97
Debug.WriteLineIf(
IntSecurity
.SecurityDemand.TraceVerbose, "FileDialogSaveFile Demanded");
98
IntSecurity
.FileDialogSaveFile.Demand();
111
new FileIOPermission(FileIOPermissionAccess.AllAccess,
IntSecurity
.UnsafeGetFullPath(filename)).Assert();
190
Debug.WriteLineIf(
IntSecurity
.SecurityDemand.TraceVerbose, "FileDialogSaveFile Demanded in SaveFileDialog.RunFileDialog");
191
IntSecurity
.FileDialogSaveFile.Demand();
200
Debug.WriteLineIf(
IntSecurity
.SecurityDemand.TraceVerbose, "FileDialogSaveFile Demanded in SaveFileDialog.RunFileDialog");
201
IntSecurity
.FileDialogSaveFile.Demand();
winforms\Managed\System\WinForms\Screen.cs (2)
357
Debug.WriteLineIf(
IntSecurity
.SecurityDemand.TraceVerbose, "ObjectFromWin32Handle Demanded");
358
IntSecurity
.ObjectFromWin32Handle.Demand();
winforms\Managed\System\WinForms\SendKeys.cs (2)
871
Debug.WriteLineIf(
IntSecurity
.SecurityDemand.TraceVerbose, "UnmanagedCode Demanded");
872
IntSecurity
.UnmanagedCode.Demand();
winforms\Managed\System\WinForms\SplitContainer.cs (2)
1988
IntSecurity
.ModifyFocus.Demand();
2178
IntSecurity
.UnmanagedCode.Assert();
winforms\Managed\System\WinForms\Splitter.cs (1)
982
IntSecurity
.UnmanagedCode.Assert();
winforms\Managed\System\WinForms\SystemInformation.cs (11)
393
IntSecurity
.ObjectFromWin32Handle.Assert();
537
Debug.WriteLineIf(
IntSecurity
.SecurityDemand.TraceVerbose, "SensitiveSystemInformation Demanded");
538
IntSecurity
.SensitiveSystemInformation.Demand();
712
Debug.WriteLineIf(
IntSecurity
.SecurityDemand.TraceVerbose, "SensitiveSystemInformation Demanded");
713
IntSecurity
.SensitiveSystemInformation.Demand();
901
Debug.WriteLineIf(
IntSecurity
.SecurityDemand.TraceVerbose, "SensitiveSystemInformation Demanded");
902
IntSecurity
.SensitiveSystemInformation.Demand();
1096
Debug.WriteLineIf(
IntSecurity
.SecurityDemand.TraceVerbose, "SensitiveSystemInformation Demanded");
1097
IntSecurity
.SensitiveSystemInformation.Demand();
1159
Debug.WriteLineIf(
IntSecurity
.SecurityDemand.TraceVerbose, "SensitiveSystemInformation Demanded");
1160
IntSecurity
.SensitiveSystemInformation.Demand();
winforms\Managed\System\WinForms\TabControl.cs (3)
1940
IntSecurity
.ModifyFocus.Assert();
1972
IntSecurity
.ModifyFocus.Assert();
2099
IntSecurity
.ModifyFocus.Assert();
winforms\Managed\System\WinForms\TextBox.cs (1)
846
IntSecurity
.UnmanagedCode.Assert();
winforms\Managed\System\WinForms\TextBoxBase.cs (2)
1588
Debug.WriteLineIf(
IntSecurity
.SecurityDemand.TraceVerbose, "ClipboardRead Demanded");
1589
IntSecurity
.ClipboardRead.Demand();
winforms\Managed\System\WinForms\ThreadExceptionDialog.cs (1)
258
IntSecurity
.GetParent.Assert();
winforms\Managed\System\WinForms\ToolStrip.cs (2)
4595
IntSecurity
.AllWindows.Assert();
4624
IntSecurity
.AllWindows.Assert();
winforms\Managed\System\WinForms\ToolStripDropDown.cs (4)
596
Debug.WriteLineIf(
IntSecurity
.SecurityDemand.TraceVerbose, "Checking for restricted window...");
608
Debug.WriteLineIf(
IntSecurity
.SecurityDemand.TraceVerbose, "WindowAdornmentModification Demanded");
609
IntSecurity
.WindowAdornmentModification.Demand();
612
Debug.WriteLineIf(
IntSecurity
.SecurityDemand.TraceVerbose, "Caught exception, we are restricted...");
winforms\Managed\System\WinForms\ToolStripDropTargetManager.cs (2)
245
IntSecurity
.ClipboardRead.Demand();
270
IntSecurity
.ClipboardRead.Assert();
winforms\Managed\System\WinForms\ToolStripGrip.cs (1)
254
IntSecurity
.ModifyCursor.Assert();
winforms\Managed\System\WinForms\ToolStripItem.cs (2)
998
IntSecurity
.ClipboardRead.Demand();
4311
IntSecurity
.DemandFileIO(FileIOPermissionAccess.PathDiscovery, fileName);
winforms\Managed\System\WinForms\ToolStripItemCollection.cs (1)
250
IntSecurity
.AllWindows.Demand();
winforms\Managed\System\WinForms\ToolStripPanel.cs (2)
841
IntSecurity
.ChangeWindowRegionForTopLevel.Assert();
1141
IntSecurity
.AdjustCursorPosition.Assert();
winforms\Managed\System\WinForms\ToolTip.cs (3)
311
IntSecurity
.AllWindows.Demand();
2448
IntSecurity
.ObjectFromWin32Handle.Assert();
2618
IntSecurity
.ObjectFromWin32Handle.Assert();
winforms\Managed\System\WinForms\TreeNode.cs (1)
1135
IntSecurity
.ControlFromHandleOrLocation.Demand();
winforms\Managed\System\WinForms\TreeView.cs (1)
3134
IntSecurity
.UnmanagedCode.Assert();
winforms\Managed\System\WinForms\TrustManagerPromptUI.cs (2)
723
IntSecurity
.AllWindows.Assert();
743
IntSecurity
.AllWindows.Assert();
winforms\Managed\System\WinForms\UserControl.cs (1)
350
IntSecurity
.ModifyFocus.Assert();
winforms\Managed\System\WinForms\VisualStyles\VisualStyleRenderer.cs (1)
696
IntSecurity
.ObjectFromWin32Handle.Assert();
winforms\Managed\System\WinForms\WebBrowser.cs (5)
857
IntSecurity
.DefaultPrinting.Demand();
959
IntSecurity
.SafePrinting.Demand();
980
IntSecurity
.SafePrinting.Demand();
1001
IntSecurity
.SafePrinting.Demand();
1043
IntSecurity
.FileDialogSaveFile.Demand();
winforms\Managed\System\WinForms\WinFormsSecurity.cs (4)
125
temp.SetPermission(
IntSecurity
.UnmanagedCode);
126
temp.SetPermission(
IntSecurity
.AllPrinting);
164
clipboardWrite.SetPermission(
IntSecurity
.UnmanagedCode);
165
clipboardWrite.SetPermission(
IntSecurity
.ClipboardOwn);