Skip to content
Snippets Groups Projects
Commit b7add832 authored by Aric Stewart's avatar Aric Stewart Committed by Alexandre Julliard
Browse files

Added handling of TokenPrimaryGroup.

parent af5feb9b
No related branches found
No related tags found
No related merge requests found
......@@ -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)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment