TokenAccess Enumeration

Flags combination for desiredAccess parameter of OpenProcessToken(SafeProcessHandle, TokenAccess, IntPtr) function.

Definition

Namespace: DevCase.Win32.Enums
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[FlagsAttribute]
public enum TokenAccess

Remarks

Members

AssignPrimary 1 Required to attach a primary token to a process.

The AssignPrimaryTokenPrivilege privilege is also required to accomplish this task.

Duplicate 2 Required to duplicate an access token.
Impersonate 4 Required to attach an impersonation access token to a process.
Query 8 Required to query an access token.
QuerySource 16 Required to query the source of an access token.
AdjustPrivileges 32 Required to enable or disable the privileges in an access token.
AdjustGroups 64 Required to adjust the attributes of the groups in an access token.
AdjustDefault 128 Required to change the default owner, primary group, or DACL of an access token.
AdjustSessionId 256 Required to adjust the session ID of an access token.

The TcbPrivilege privilege is required.

StandradRightsRead 131,072  
StandardRightsRequired 983,040  
Read 983,048 Combines StandardRightsRequired and Query.
AllAccess 983,551 Combines all possible access rights for a token.

See Also