#ifndef _NTSEAPI_H
#if !defined(NTDDI_WIN11_GE) || (NTDDI_VERSION < NTDDI_WIN11_GE)
typedef struct _TOKEN_LOGGING_INFORMATION
{
TOKEN_TYPE TokenType;
TOKEN_ELEVATION TokenElevation;
TOKEN_ELEVATION_TYPE TokenElevationType;
SECURITY_IMPERSONATION_LEVEL ImpersonationLevel;
ULONG IntegrityLevel;
SID_AND_ATTRIBUTES User;
PSID TrustLevelSid;
ULONG SessionId;
ULONG AppContainerNumber;
LUID AuthenticationId;
ULONG GroupCount;
ULONG GroupsLength;
PSID_AND_ATTRIBUTES Groups;
} TOKEN_LOGGING_INFORMATION, *PTOKEN_LOGGING_INFORMATION;
View code on GitHub// ntifs.h
typedef struct _TOKEN_LOGGING_INFORMATION {
TOKEN_TYPE TokenType;
TOKEN_ELEVATION TokenElevation;
TOKEN_ELEVATION_TYPE TokenElevationType;
SECURITY_IMPERSONATION_LEVEL ImpersonationLevel;
ULONG IntegrityLevel;
SID_AND_ATTRIBUTES User;
PSID TrustLevelSid;
ULONG SessionId;
ULONG AppContainerNumber;
LUID AuthenticationId;
ULONG GroupCount;
ULONG GroupsLength;
PSID_AND_ATTRIBUTES Groups;
} TOKEN_LOGGING_INFORMATION, *PTOKEN_LOGGING_INFORMATION;
View the official Windows Driver Kit DDI referenceNo description available.
The TOKEN_LOGGING_INFORMATION provides detailed information about a security token.
TokenTypeA TOKEN_TYPE value that indicates the type of the token.
TokenElevationA TOKEN_ELEVATION value that indicates the elevation level of the token.
TokenElevationTypeA TOKEN_ELEVATION_TYPE value that indicates the elevation type of the token.
ImpersonationLevelA SECURITY_IMPERSONATION_LEVEL value that indicates the impersonation level of the token.
IntegrityLevelIndicates the integrity level of the token.
UserA SID_AND_ATTRIBUTES structure that contains the user SID and its attributes.
TrustLevelSidPointer to a SID structure representing the trust level of the token.
SessionIdThe session ID associated with the token.
AppContainerNumberThe number of the app container associated with the token.
AuthenticationIdA LUID that represents the authentication ID of the token.
GroupCountNumber of groups associated with the token.
GroupsLengthLength in bytes of the Groups array.
GroupsPointer to an array of SID_AND_ATTRIBUTES structures that represent the groups associated with the token.