Added handling of TokenPrimaryGroup.

This commit is contained in:
Aric Stewart 2004-08-17 22:28:13 +00:00 committed by Alexandre Julliard
parent af5feb9bdd
commit b7add83287
1 changed files with 13 additions and 0 deletions

View File

@ -257,6 +257,19 @@ NTSTATUS WINAPI NtQueryInformationToken(
&(tgroups->Groups->Sid));
}
break;
case TokenPrimaryGroup:
if (tokeninfo)
{
TOKEN_PRIMARY_GROUP *tgroup = tokeninfo;
SID_IDENTIFIER_AUTHORITY sid = {SECURITY_NT_AUTHORITY};
RtlAllocateAndInitializeSid( &sid,
2,
SECURITY_BUILTIN_DOMAIN_RID,
DOMAIN_ALIAS_RID_ADMINS,
0, 0, 0, 0, 0, 0,
&(tgroup->PrimaryGroup));
}
break;
case TokenPrivileges:
if (tokeninfo)
{