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