| 1 | // Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. |
| 2 | |
| 3 | namespace WixToolset.Util |
| 4 | { |
| 5 | using System.Xml.Linq; |
| 6 | |
| 7 | /// <summary> |
| 8 | /// Constants used by Utility Extension. |
| 9 | /// </summary> |
| 10 | internal static class UtilConstants |
| 11 | { |
| 12 | internal static readonly XNamespace Namespace = "http://wixtoolset.org/schemas/v4/wxs/util"; |
| 13 | |
| 14 | internal static readonly XName BroadcastEnvironmentChange = Namespace + "BroadcastEnvironmentChange"; |
| 15 | internal static readonly XName BroadcastSettingChange = Namespace + "BroadcastSettingChange"; |
| 16 | internal static readonly XName CheckRebootRequired = Namespace + "CheckRebootRequired"; |
| 17 | internal static readonly XName CloseApplicationName = Namespace + "CloseApplication"; |
| 18 | internal static readonly XName EventManifestName = Namespace + "EventManifest"; |
| 19 | internal static readonly XName FileShareName = Namespace + "FileShare"; |
| 20 | internal static readonly XName FileSharePermissionName = Namespace + "FileSharePermission"; |
| 21 | internal static readonly XName GroupName = Namespace + "Group"; |
| 22 | internal static readonly XName GroupRefName = Namespace + "GroupRef"; |
| 23 | internal static readonly XName InternetShortcutName = Namespace + "InternetShortcut"; |
| 24 | internal static readonly XName PerfCounterName = Namespace + "PerfCounter"; |
| 25 | internal static readonly XName PerfCounterManifestName = Namespace + "PerfCounterManifest"; |
| 26 | internal static readonly XName PermissionExName = Namespace + "PermissionEx"; |
| 27 | internal static readonly XName QueryNativeMachine = Namespace + "QueryNativeMachine"; |
| 28 | internal static readonly XName QueryWindowsDriverInfo = Namespace + "QueryWindowsDriverInfo"; |
| 29 | internal static readonly XName QueryWindowsSuiteInfo = Namespace + "QueryWindowsSuiteInfo"; |
| 30 | internal static readonly XName RemoveFolderExName = Namespace + "RemoveFolderEx"; |
| 31 | internal static readonly XName RestartResourceName = Namespace + "RestartResource"; |
| 32 | internal static readonly XName ServiceConfigName = Namespace + "ServiceConfig"; |
| 33 | internal static readonly XName UserName = Namespace + "User"; |
| 34 | internal static readonly XName XmlConfigName = Namespace + "XmlConfig"; |
| 35 | internal static readonly XName XmlFileName = Namespace + "XmlFile"; |
| 36 | |
| 37 | internal static readonly string[] FilePermissions = { "Read", "Write", "Append", "ReadExtendedAttributes", "WriteExtendedAttributes", "Execute", null, "ReadAttributes", "WriteAttributes" }; |
| 38 | internal static readonly string[] FolderPermissions = { "Read", "CreateFile", "CreateChild", "ReadExtendedAttributes", "WriteExtendedAttributes", "Traverse", "DeleteChild", "ReadAttributes", "WriteAttributes" }; |
| 39 | internal static readonly string[] GenericPermissions = { "GenericAll", "GenericExecute", "GenericWrite", "GenericRead" }; |
| 40 | internal static readonly string[] RegistryPermissions = { "Read", "Write", "CreateSubkeys", "EnumerateSubkeys", "Notify", "CreateLink" }; |
| 41 | internal static readonly string[] ServicePermissions = { "ServiceQueryConfig", "ServiceChangeConfig", "ServiceQueryStatus", "ServiceEnumerateDependents", "ServiceStart", "ServiceStop", "ServicePauseContinue", "ServiceInterrogate", "ServiceUserDefinedControl" }; |
| 42 | internal static readonly string[] StandardPermissions = { "Delete", "ReadPermission", "ChangePermission", "TakeOwnership", "Synchronize" }; |
| 43 | } |
| 44 | } |