// ntifs.h
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;
View the official Windows Driver Kit DDI referenceNo description available.
TOKEN_GROUPS_AND_PRIVILEGES contains information about the group security identifiers (SIDs) and privileges in an access token.
SidCountSpecifies the number of SIDs in the access token.
SidLengthSpecifies the length, in bytes, required to hold all of the user SIDs and the account SID for the group.
SidsA pointer to SID_AND_ATTRIBUTES structures that contain a set of SIDs and corresponding attributes.
RestrictedSidCountSpecifies the number of the restricted SIDs included in the access token.
RestrictedSidLengthSpecifies the length, in bytes, required to hold all of the restricted SIDs.
RestrictedSidsA pointer to SID_AND_ATTRIBUTES structures that contain a set of restricted SIDs and corresponding attributes.
PrivilegeCountSpecifies the number of privileges included in the access token.
PrivilegeLengthSpecifies the length, in bytes, needed to hold all of the privileges.
PrivilegesA pointer to LUID_AND_ATTRIBUTES structures that contain a set of privileges.
AuthenticationIdThe locally unique identifier (LUID) of the authenticator of the token.