TOKEN_PRIVILEGES  2777ZGG 

The TOKEN_PRIVILEGES structure contains information about a set of privileges for an access token.

typedef struct _TOKEN_PRIVILEGES {  // tp

    DWORD PrivilegeCount;

    LUID_AND_ATTRIBUTES Privileges[ANYSIZE_ARRAY];

} TOKEN_PRIVILEGES;

 

Members

PrivilegeCount

Specifies the number of entries in the Privileges array.

Privileges

Specifies an array of LUID_AND_ATTRIBUTES2_K_33P structures. Each structure contains the LUIDFBPWVF and attributes of a privilege. The attributes of a privilege can be a combination of the following values:

Attribute

Description

SE_PRIVILEGE_ENABLED_BY_DEFAULT

 

 

The privilege is enabled by default.

SE_PRIVILEGE_ENABLED

 

 

The privilege is enabled.

SE_PRIVILEGE_USED_FOR_ACCESS

 

 

The privilege was used to gain access to an object or service. This flag is used to identify the relevant privileges in a set passed by a client application that may contain unnecessary privileges.

 

See Also

AdjustTokenPrivileges, GetTokenInformation, LUID, LUID_AND_ATTRIBUTES, PrivilegeCheck, PrivilegedServiceAuditAlarm, PRIVILEGE_SET, SetTokenInformation, TOKEN_CONTROL, TOKEN_DEFAULT_DACL, TOKEN_GROUPS, TOKEN_INFORMATION_CLASS, TOKEN_OWNER, TOKEN_PRIMARY_GROUP, TOKEN_SOURCE, TOKEN_STATISTICS, TOKEN_TYPE, TOKEN_USER