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

◆ AcquireCredentialsHandle() [3/6]

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

Definition at line 112 of file SSPIWrapper.cs.

113 {
114 if (System.Net.NetEventSource.Log.IsEnabled())
115 {
116 System.Net.NetEventSource.Log.AcquireCredentialsHandle(package, intent, authdata);
117 }
118 SafeFreeCredentials outCredential = null;
119 int num = secModule.AcquireCredentialsHandle(package, intent, ref authdata, out outCredential);
120 if (num != 0)
121 {
122 if (System.Net.NetEventSource.Log.IsEnabled())
123 {
124 System.Net.NetEventSource.Error(null, System.SR.Format(System.SR.net_log_operation_failed_with_error, "AcquireCredentialsHandle", $"0x{num:X}"), "AcquireCredentialsHandle");
125 }
126 throw new Win32Exception(num);
127 }
128 return outCredential;
129 }
static readonly System.Net.NetEventSource Log
static void Error(object thisOrContextObject, FormattableString formattableString, [CallerMemberName] string memberName=null)
static unsafe int AcquireCredentialsHandle(string package, global::Interop.SspiCli.CredentialUse intent, ref System.Net.Security.SafeSspiAuthDataHandle authdata, 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.AcquireCredentialsHandle(), System.Net.NetEventSource.Error(), System.SR.Format(), System.Net.NetEventSource.Log, and System.SR.net_log_operation_failed_with_error.