17 references to TokenInformationClass
System.Security.Principal.Windows (17)
System\Security\Principal\WindowsIdentity.cs (17)
268(uint)TokenInformationClass.TokenType, 429TokenType tokenType = (TokenType)GetTokenInformation<int>(TokenInformationClass.TokenType); 437int level = GetTokenInformation<int>(TokenInformationClass.TokenImpersonationLevel); 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)!) 887private unsafe T GetTokenInformation<T>(TokenInformationClass tokenInformationClass) where T : unmanaged 902using (SafeLocalAllocHandle pStatistics = GetTokenInformation(safeTokenHandle, TokenInformationClass.TokenStatistics, nullOnInvalidParam: false)!) 909private static SafeLocalAllocHandle? GetTokenInformation(SafeAccessTokenHandle tokenHandle, TokenInformationClass tokenInformationClass, bool nullOnInvalidParam = false) 1064AddDeviceGroupSidClaims(_deviceClaims, TokenInformationClass.TokenDeviceGroups); 1069AddTokenClaims(_userClaims, TokenInformationClass.TokenUserClaimAttributes, ClaimTypes.WindowsUserClaim); 1072AddTokenClaims(_deviceClaims, TokenInformationClass.TokenDeviceClaimAttributes, ClaimTypes.WindowsDeviceClaim); 1094safeAllocHandlePrimaryGroup = GetTokenInformation(_safeTokenHandle, TokenInformationClass.TokenPrimaryGroup); 1102safeAllocHandle = GetTokenInformation(_safeTokenHandle, TokenInformationClass.TokenGroups); 1162safeAllocHandle = GetTokenInformation(_safeTokenHandle, TokenInformationClass.TokenUser); 1187private unsafe void AddDeviceGroupSidClaims(List<Claim> instanceClaims, TokenInformationClass tokenInformationClass) 1239private unsafe void AddTokenClaims(List<Claim> instanceClaims, TokenInformationClass tokenInformationClass, string propertyValue)