struttura TOKEN_STATISTICS (ntifs.h)

La struttura TOKEN_STATISTICS contiene informazioni su un token di accesso. Un driver può recuperare queste informazioni chiamando SeQueryInformationToken o ZwQueryInformationToken.

Sintassi

typedef struct _TOKEN_STATISTICS {
  LUID                         TokenId;
  LUID                         AuthenticationId;
  LARGE_INTEGER                ExpirationTime;
  TOKEN_TYPE                   TokenType;
  SECURITY_IMPERSONATION_LEVEL ImpersonationLevel;
  ULONG                        DynamicCharged;
  ULONG                        DynamicAvailable;
  ULONG                        GroupCount;
  ULONG                        PrivilegeCount;
  LUID                         ModifiedId;
} TOKEN_STATISTICS, *PTOKEN_STATISTICS;

Members

TokenId

Specifica un identificatore univoco locale (LUID) che identifica questa istanza dell'oggetto token.

AuthenticationId

Specifica un LUID assegnato alla sessione rappresentata da questo token. Possono essere presenti molti token che rappresentano una singola sessione di accesso.

ExpirationTime

Specifica l'ora in cui scade il token. Le ore di scadenza per i token di accesso non sono attualmente supportate.

TokenType

Specifica un tipo enumerato TOKEN_TYPE che indica se il token è un token primario o di rappresentazione.

ImpersonationLevel

Specifica un SECURITY_IMPERSONATION_LEVEL tipo enumerato che indica il livello di rappresentazione del token. Questo membro è valido solo se TokenType è TokenImpersonation.

DynamicCharged

Specifica la quantità, in byte, della memoria allocata per l'archiviazione di un elenco di controllo di accesso predefinito (DACL) e un identificatore di gruppo primario.

DynamicAvailable

Specifica la parte della memoria allocata per l'archiviazione di un DACL e un identificatore di gruppo primario che non è già in uso. Questo valore viene restituito come conteggio di byte liberi.

GroupCount

Specifica il numero di SID (Supplemental Group Security Identifier) inclusi nel token.

PrivilegeCount

Specifica il numero di privilegi inclusi nel token.

ModifiedId

Specifica un LUID che cambia ogni volta che il token viene modificato. Un'applicazione può usare questo valore come test per verificare se un contesto di sicurezza è stato modificato dopo l'ultimo utilizzo.

Requisiti

Requisito Valore
Intestazione ntifs.h (include Ntifs.h)

Vedi anche

ACL

LUID

SECURITY_IMPERSONATION_LEVEL

SID

SeQueryInformationToken

TOKEN_INFORMATION_CLASS

TOKEN_TYPE

ZwQueryInformationToken

ZwSetInformationToken