1 // Licensed to the .NET Foundation under one or more agreements. 2 // The .NET Foundation licenses this file to you under the MIT license. 3 // See the LICENSE file in the project root for more information. 4 5 namespace System.Security.Principal 6 { 7 [Flags] 8 public enum TokenAccessLevels 9 { 10 AssignPrimary = 0x00000001, 11 Duplicate = 0x00000002, 12 Impersonate = 0x00000004, 13 Query = 0x00000008, 14 QuerySource = 0x00000010, 15 AdjustPrivileges = 0x00000020, 16 AdjustGroups = 0x00000040, 17 AdjustDefault = 0x00000080, 18 AdjustSessionId = 0x00000100, 19 20 Read = 0x00020000 | Query, 21 22 Write = 0x00020000 | AdjustPrivileges | AdjustGroups | AdjustDefault, 23 24 AllAccess = 0x000F0000 | 25 AssignPrimary | 26 Duplicate | 27 Impersonate | 28 Query | 29 QuerySource | 30 AdjustPrivileges | 31 AdjustGroups | 32 AdjustDefault | 33 AdjustSessionId, 34 35 MaximumAllowed = 0x02000000 36 } 37 } 38