The UIPermissionWindow enumeration contains values that the UIPermission class uses to represent the type of window elements code is permitted to use. SafeSubWindows represents the ability to use safe subwindows such as message boxes and common dialog controls. SafeTopLevelWindows represents permission to use top-level windows that are considered safe because they are clearly labeled to avoid spoofing attacks. AllWindows represents the ability to access all windows elements.