typedef struct _TOKEN_STATISTICS { /* tst */
LUID TokenId;
LUID AuthenticationId;
LARGE_INTEGER ExpirationTime;
TOKEN_TYPE TokenType;
SECURITY_IMPERSONATION_LEVEL ImpersonationLevel;
DWORD DynamicCharged;
DWORD DynamicAvailable;
DWORD GroupCount;
DWORD PrivilegeCount;
LUID ModifiedId;
} TOKEN_STATISTICS ;
The TOKEN_STATISTICS data structure contains information about a token.
TokenId
Is an LUID value uniquely identifying this instance of token object.
AuthenticationId
A GUID uniquely assigned to the logon session that this token represents. Note that there may be many tokens representing a single logon session.
ExpirationTime
Indicates the absolute time at which this token expires. An expired token no longer grants access to objects.
TokenType
Indicates what type the token is (e.g., primary or impersonation).
ImpersonationLevel
Valid only if the TokenType is impersonation, indicates the impersonation level of the token.
DynamicCharged
Indicates the amount of memory allocated, in bytes, for storing default protection and a primary group ID.
DynamicAvailable
Indicates the portion of memory allocated for storing default protection and a primary group ID that is not already in use. This is returned as a count of free bytes.
GroupCount
Indicates the number of supplemental group SIDs included in the token.
PrivilegeCount
Indicates the number of privileges included in the token.
ModifiedId
An LUID value that changes each time the token is modified. This may be used, among other things, as a quick test to see if a security context has changed since it was last used.