Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ AcquireDefaultCredential() [1/4]

static SafeFreeCredentials System.Net.SSPIWrapper.AcquireDefaultCredential ( ISSPIInterface secModule,
string package,
global::Interop::SspiCli::CredentialUse intent )
inlinestatic

Definition at line 93 of file SSPIWrapper.cs.

94 {
95 if (System.Net.NetEventSource.Log.IsEnabled())
96 {
97 System.Net.NetEventSource.Log.AcquireDefaultCredential(package, intent);
98 }
99 SafeFreeCredentials outCredential = null;
100 int num = secModule.AcquireDefaultCredential(package, intent, out outCredential);
101 if (num != 0)
102 {
103 if (System.Net.NetEventSource.Log.IsEnabled())
104 {
105 System.Net.NetEventSource.Error(null, System.SR.Format(System.SR.net_log_operation_failed_with_error, "AcquireDefaultCredential", $"0x{num:X}"), "AcquireDefaultCredential");
106 }
107 throw new Win32Exception(num);
108 }
109 return outCredential;
110 }
static readonly System.Net.NetEventSource Log
static void Error(object thisOrContextObject, FormattableString formattableString, [CallerMemberName] string memberName=null)
static unsafe int AcquireDefaultCredential(string package, global::Interop.SspiCli.CredentialUse intent, out System.Net.Security.SafeFreeCredentials outCredential)
static string Format(string resourceFormat, object p1)
Definition SR.cs:118
static string net_log_operation_failed_with_error
Definition SR.cs:154
Definition SR.cs:7

References System.Net.ISSPIInterface.AcquireDefaultCredential(), System.Net.NetEventSource.Error(), System.SR.Format(), System.Net.NetEventSource.Log, and System.SR.net_log_operation_failed_with_error.