#ifndef _NTSEAPI_H
//
// Authz
//
// begin_rev
#if (PHNT_MODE == PHNT_MODE_KERNEL)
/**
* The TOKEN_ACCESS_INFORMATION structure is the fixed header returned for TokenAccessInformation.
* \remarks The fixed layout is 0x58 bytes on x64 and 0x38 bytes on x86 and ends with SecurityAttributes.
* Query ReturnLength includes the additional SID hashes, SID arrays, privileges and attribute storage.
* The pointer members refer into the returned buffer. There is no trailing SECURITY_QUALITY_OF_SERVICE field.
*/
typedef struct _TOKEN_ACCESS_INFORMATION
{
PSID_AND_ATTRIBUTES_HASH SidHash;
PSID_AND_ATTRIBUTES_HASH RestrictedSidHash;
PTOKEN_PRIVILEGES Privileges;
LUID AuthenticationId;
TOKEN_TYPE TokenType;
SECURITY_IMPERSONATION_LEVEL ImpersonationLevel;
TOKEN_MANDATORY_POLICY MandatoryPolicy;
ULONG Flags;
ULONG AppContainerNumber;
PSID PackageSid;
PSID_AND_ATTRIBUTES_HASH CapabilitiesHash;
PSID TrustLevelSid;
PSECURITY_ATTRIBUTES_OPAQUE SecurityAttributes;
} TOKEN_ACCESS_INFORMATION, *PTOKEN_ACCESS_INFORMATION;
View code on GitHub// ntifs.h
typedef struct _TOKEN_ACCESS_INFORMATION {
PSID_AND_ATTRIBUTES_HASH SidHash;
PSID_AND_ATTRIBUTES_HASH RestrictedSidHash;
PTOKEN_PRIVILEGES Privileges;
LUID AuthenticationId;
TOKEN_TYPE TokenType;
SECURITY_IMPERSONATION_LEVEL ImpersonationLevel;
TOKEN_MANDATORY_POLICY MandatoryPolicy;
ULONG Flags;
ULONG AppContainerNumber;
PSID PackageSid;
PSID_AND_ATTRIBUTES_HASH CapabilitiesHash;
PSID TrustLevelSid;
PSECURITY_ATTRIBUTES_OPAQUE SecurityAttributes;
} TOKEN_ACCESS_INFORMATION, *PTOKEN_ACCESS_INFORMATION;
View the official Windows Driver Kit DDI referenceNo description available.
The TOKEN_ACCESS_INFORMATION structure specifies all the information in a token that is necessary to perform an access check.
SidHashPointer to a SID_AND_ATTRIBUTES_HASH structure that specifies a hash of the token's security identifier (SID).
RestrictedSidHashPointer to a SID_AND_ATTRIBUTES_HASH structure that specifies a hash of the token's restricted SID.
PrivilegesPointer to a TOKEN_PRIVILEGES structure that specifies information about the token's privileges.
AuthenticationIdA LUID structure that specifies the token's identity.
TokenTypeA TOKEN_TYPE enumeration value that specifies the token's type.
ImpersonationLevelA SECURITY_IMPERSONATION_LEVEL enumeration value that specifies the token's impersonation level.
MandatoryPolicyA TOKEN_MANDATORY_POLICY structure that specifies the token's mandatory integrity policy.
FlagsReserved. Must be set to zero.
AppContainerNumberThe app container number for the token or zero if this is not an app container token.
PackageSidThe app container SID or NULL if this is not an app container token.
CapabilitiesHashPointer to a SID_AND_ATTRIBUTES_HASH structure that specifies a hash of the token's capability SIDs.
TrustLevelSidPointer to a SID value that specifies the protected process trust level of the token.
SecurityAttributesReserved. Must be set to NULL.