10 references to GetTokenInformation
System.Security.Principal.Windows (10)
System\Security\Principal\WindowsIdentity.cs (10)
605using (SafeLocalAllocHandle tokenOwner = GetTokenInformation(_safeTokenHandle, TokenInformationClass.TokenOwner, nullOnInvalidParam: false)!) 625using (SafeLocalAllocHandle tokenUser = GetTokenInformation(_safeTokenHandle, TokenInformationClass.TokenUser, nullOnInvalidParam: false)!) 646using (SafeLocalAllocHandle pGroups = GetTokenInformation(_safeTokenHandle, TokenInformationClass.TokenGroups, nullOnInvalidParam: false)!) 891using (SafeLocalAllocHandle information = GetTokenInformation(_safeTokenHandle, tokenInformationClass, nullOnInvalidParam: false)!) 902using (SafeLocalAllocHandle pStatistics = GetTokenInformation(safeTokenHandle, TokenInformationClass.TokenStatistics, nullOnInvalidParam: false)!) 1094safeAllocHandlePrimaryGroup = GetTokenInformation(_safeTokenHandle, TokenInformationClass.TokenPrimaryGroup); 1102safeAllocHandle = GetTokenInformation(_safeTokenHandle, TokenInformationClass.TokenGroups); 1162safeAllocHandle = GetTokenInformation(_safeTokenHandle, TokenInformationClass.TokenUser); 1198safeAllocHandle = GetTokenInformation(_safeTokenHandle, tokenInformationClass, nullOnInvalidParam: true); 1249safeAllocHandle = GetTokenInformation(_safeTokenHandle, tokenInformationClass);