Home
last modified time | relevance | path

Searched refs:TokenStats (Results 1 – 4 of 4) sorted by relevance

/reactos/modules/rostests/apitests/ntdll/
H A DNtFilterToken.c35 PTOKEN_STATISTICS TokenStats; in START_TEST() local
67 TokenStats = RtlAllocateHeap(RtlGetProcessHeap(), 0, Size); in START_TEST()
68 if (TokenStats == NULL) in START_TEST()
75 Status = NtQueryInformationToken(Token, TokenStatistics, TokenStats, Size, &Size); in START_TEST()
82 trace("Number of privileges before token filtering -- %lu\n\n", TokenStats->PrivilegeCount); in START_TEST()
94 Status = NtQueryInformationToken(FilteredToken, TokenStatistics, TokenStats, Size, &Size); in START_TEST()
101 …iltering (privileges disabled with DISABLE_MAX_PRIVILEGE) -- %lu\n\n", TokenStats->PrivilegeCount); in START_TEST()
122 Status = NtQueryInformationToken(FilteredToken, TokenStatistics, TokenStats, Size, &Size); in START_TEST()
129 …ileges after token filtering (manually deleted privilege) -- %lu\n\n", TokenStats->PrivilegeCount); in START_TEST()
132 RtlFreeHeap(RtlGetProcessHeap(), 0, TokenStats); in START_TEST()
H A DNtDuplicateToken.c72 PTOKEN_STATISTICS TokenStats; in DuplicateTokenAsEffective() local
112 TokenStats = RtlAllocateHeap(RtlGetProcessHeap(), 0, Size); in DuplicateTokenAsEffective()
113 if (TokenStats == NULL) in DuplicateTokenAsEffective()
120 Status = NtQueryInformationToken(TokenHandle, TokenStatistics, TokenStats, Size, &Size); in DuplicateTokenAsEffective()
127 trace("Number of privileges of regular token -- %lu\n", TokenStats->PrivilegeCount); in DuplicateTokenAsEffective()
128 trace("Number of groups of regular token -- %lu\n", TokenStats->GroupCount); in DuplicateTokenAsEffective()
146 … Status = NtQueryInformationToken(DuplicatedTokenHandle, TokenStatistics, TokenStats, Size, &Size); in DuplicateTokenAsEffective()
153 trace("Number of privileges of effective only token -- %lu\n", TokenStats->PrivilegeCount); in DuplicateTokenAsEffective()
154 trace("Number of groups of effective only token -- %lu\n", TokenStats->GroupCount); in DuplicateTokenAsEffective()
160 RtlFreeHeap(RtlGetProcessHeap(), 0, TokenStats); in DuplicateTokenAsEffective()
/reactos/sdk/lib/rtl/
H A Dsecurity.c517 TOKEN_STATISTICS TokenStats; in RtlNewInstanceSecurityObject() local
525 &TokenStats, in RtlNewInstanceSecurityObject()
526 sizeof(TokenStats), in RtlNewInstanceSecurityObject()
531 *NewClientTokenModifiedId = TokenStats.ModifiedId; in RtlNewInstanceSecurityObject()
615 TOKEN_STATISTICS TokenStats; in RtlNewSecurityGrantedAccess() local
638 &TokenStats, in RtlNewSecurityGrantedAccess()
639 sizeof(TokenStats), in RtlNewSecurityGrantedAccess()
/reactos/subsystems/csr/csrsrv/
H A Dprocsup.c834 PTOKEN_STATISTICS TokenStats; in CsrGetProcessLuid() local
885 if (!(TokenStats = RtlAllocateHeap(CsrHeap, 0, Length))) in CsrGetProcessLuid()
895 TokenStats, in CsrGetProcessLuid()
906 *Luid = TokenStats->AuthenticationId; in CsrGetProcessLuid()
910 RtlFreeHeap(CsrHeap, 0, TokenStats); in CsrGetProcessLuid()