Set SE_GROUP_ENABLED in Attributes of Administrators SID during

NtQueryInformationToken for TokenGroups.
This commit is contained in:
John K. Hohm 2003-08-29 22:10:53 +00:00 committed by Alexandre Julliard
parent b79fc16577
commit a3f6410f9e
1 changed files with 1 additions and 0 deletions

View File

@ -354,6 +354,7 @@ NTSTATUS WINAPI NtQueryInformationToken(
/* we need to show admin privileges ! */ /* we need to show admin privileges ! */
tgroups->GroupCount = 1; tgroups->GroupCount = 1;
tgroups->Groups->Attributes = SE_GROUP_ENABLED;
RtlAllocateAndInitializeSid( &sid, RtlAllocateAndInitializeSid( &sid,
2, 2,
SECURITY_BUILTIN_DOMAIN_RID, SECURITY_BUILTIN_DOMAIN_RID,