TOKEN_GROUPS_AND_PRIVILEGES structure (ntifs.h)

TOKEN_GROUPS_AND_PRIVILEGES contains information about the group security identifiers (SIDs) and privileges in an access token.

Syntax

typedef struct _TOKEN_GROUPS_AND_PRIVILEGES {
  ULONG                SidCount;
  ULONG                SidLength;
  PSID_AND_ATTRIBUTES  Sids;
  ULONG                RestrictedSidCount;
  ULONG                RestrictedSidLength;
  PSID_AND_ATTRIBUTES  RestrictedSids;
  ULONG                PrivilegeCount;
  ULONG                PrivilegeLength;
  PLUID_AND_ATTRIBUTES Privileges;
  LUID                 AuthenticationId;
} TOKEN_GROUPS_AND_PRIVILEGES, *PTOKEN_GROUPS_AND_PRIVILEGES;

Members

SidCount

Specifies the number of SIDs in the access token.

SidLength

Specifies the length, in bytes, required to hold all of the user SIDs and the account SID for the group.

Sids

A pointer to SID_AND_ATTRIBUTES structures that contain a set of SIDs and corresponding attributes.

RestrictedSidCount

Specifies the number of the restricted SIDs included in the access token.

RestrictedSidLength

Specifies the length, in bytes, required to hold all of the restricted SIDs.

RestrictedSids

A pointer to SID_AND_ATTRIBUTES structures that contain a set of restricted SIDs and corresponding attributes.

PrivilegeCount

Specifies the number of privileges included in the access token.

PrivilegeLength

Specifies the length, in bytes, needed to hold all of the privileges.

Privileges

A pointer to LUID_AND_ATTRIBUTES structures that contain a set of privileges.

AuthenticationId

The locally unique identifier (LUID) of the authenticator of the token.

Requirements

Requirement Value
Header ntifs.h (include Ntifs.h)

See also

ACL

LUID_AND_ATTRIBUTES

SECURITY_IMPERSONATION_LEVEL

SID

SID_AND_ATTRIBUTES

SeFilterToken

SeQueryInformationToken

SeTokenIsRestricted

TOKEN_DEFAULT_DACL

TOKEN_INFORMATION_CLASS

TOKEN_OWNER

TOKEN_PRIMARY_GROUP

TOKEN_PRIVILEGES

TOKEN_SOURCE

TOKEN_STATISTICS

TOKEN_TYPE

TOKEN_USER

ZwQueryInformationToken

ZwSetInformationToken