UIPermissionWindow Enumeration
Specifies the type of windows that code is allowed to use.
Assembly: mscorlib (in mscorlib.dll)
| Member name | Description | |
|---|---|---|
| NoWindows | Users cannot use any windows or user interface events. No user interface can be used. | |
| SafeSubWindows | Users can only use SafeSubWindows for drawing, and can only use user input events for user interface within that subwindow. Examples of SafeSubWindows are a MessageBox, common dialog controls, and a control displayed within a browser. | |
| SafeTopLevelWindows |
Users can only use SafeTopLevelWindows and SafeSubWindows for drawing, and can only use user input events for the user interface within those top-level windows and subwindows.
When it runs under SafeTopLevelWindows permission, your application:
These restrictions help prevent potentially harmful code from spoofing attacks, such as imitating trusted system dialogs. |
|
| AllWindows | Users can use all windows and user input events without restriction. |
This enumeration is used by UIPermission.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.