17 references to TokenInformationClass
System.Security.Principal.Windows (17)
System\Security\Principal\WindowsIdentity.cs (17)
271(uint)TokenInformationClass.TokenType, 432TokenType tokenType = (TokenType)GetTokenInformation<int>(TokenInformationClass.TokenType); 440int level = GetTokenInformation<int>(TokenInformationClass.TokenImpersonationLevel); 608using (SafeNativeMemoryHandle tokenOwner = GetTokenInformation(_safeTokenHandle, TokenInformationClass.TokenOwner, nullOnInvalidParam: false)!) 628using (SafeNativeMemoryHandle tokenUser = GetTokenInformation(_safeTokenHandle, TokenInformationClass.TokenUser, nullOnInvalidParam: false)!) 649using (SafeNativeMemoryHandle pGroups = GetTokenInformation(_safeTokenHandle, TokenInformationClass.TokenGroups, nullOnInvalidParam: false)!) 890private unsafe T GetTokenInformation<T>(TokenInformationClass tokenInformationClass) where T : unmanaged 905using (SafeNativeMemoryHandle pStatistics = GetTokenInformation(safeTokenHandle, TokenInformationClass.TokenStatistics, nullOnInvalidParam: false)!) 912private static SafeNativeMemoryHandle? GetTokenInformation(SafeAccessTokenHandle tokenHandle, TokenInformationClass tokenInformationClass, bool nullOnInvalidParam = false) 1067AddDeviceGroupSidClaims(_deviceClaims, TokenInformationClass.TokenDeviceGroups); 1072AddTokenClaims(_userClaims, TokenInformationClass.TokenUserClaimAttributes, ClaimTypes.WindowsUserClaim); 1075AddTokenClaims(_deviceClaims, TokenInformationClass.TokenDeviceClaimAttributes, ClaimTypes.WindowsDeviceClaim); 1097safeAllocHandlePrimaryGroup = GetTokenInformation(_safeTokenHandle, TokenInformationClass.TokenPrimaryGroup); 1105safeAllocHandle = GetTokenInformation(_safeTokenHandle, TokenInformationClass.TokenGroups); 1165safeAllocHandle = GetTokenInformation(_safeTokenHandle, TokenInformationClass.TokenUser); 1190private unsafe void AddDeviceGroupSidClaims(List<Claim> instanceClaims, TokenInformationClass tokenInformationClass) 1242private unsafe void AddTokenClaims(List<Claim> instanceClaims, TokenInformationClass tokenInformationClass, string propertyValue)