using System; using System.Runtime.InteropServices; namespace System.Security.Principal { /// Defines the privileges of the user account associated with the access token. // Token: 0x020005B3 RID: 1459 [ComVisible(true)] [Flags] [Serializable] public enum TokenAccessLevels { /// The user can attach a primary token to a process. // Token: 0x0400159D RID: 5533 AssignPrimary = 1, /// The user can duplicate the token. // Token: 0x0400159E RID: 5534 Duplicate = 2, /// The user can impersonate a client. // Token: 0x0400159F RID: 5535 Impersonate = 4, /// The user can query the token. // Token: 0x040015A0 RID: 5536 Query = 8, /// The user can query the source of the token. // Token: 0x040015A1 RID: 5537 QuerySource = 16, /// The user can enable or disable privileges in the token. // Token: 0x040015A2 RID: 5538 AdjustPrivileges = 32, /// The user can change the attributes of the groups in the token. // Token: 0x040015A3 RID: 5539 AdjustGroups = 64, /// The user can change the default owner, primary group, or discretionary access control list (DACL) of the token. // Token: 0x040015A4 RID: 5540 AdjustDefault = 128, /// The user can adjust the session identifier of the token. // Token: 0x040015A5 RID: 5541 AdjustSessionId = 256, /// The user has standard read rights and the privilege for the token. // Token: 0x040015A6 RID: 5542 Read = 131080, /// The user has standard write rights and the , and privileges for the token. // Token: 0x040015A7 RID: 5543 Write = 131296, /// The user has all possible access to the token. // Token: 0x040015A8 RID: 5544 AllAccess = 983551, /// The maximum value that can be assigned for the enumeration. // Token: 0x040015A9 RID: 5545 MaximumAllowed = 33554432 } }