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

◆ AcquireCredentialsHandle() [1/6]

static unsafe SafeFreeCredentials System.Net.SSPIWrapper.AcquireCredentialsHandle ( ISSPIInterface secModule,
string package,
global::Interop::SspiCli::CredentialUse intent,
global::Interop::SspiCli::SCH_CREDENTIALS * scc )
inlinestatic

Definition at line 146 of file SSPIWrapper.cs.

147 {
148 SafeFreeCredentials outCredential;
149 int num = secModule.AcquireCredentialsHandle(package, intent, scc, out outCredential);
150 if (num != 0)
151 {
152 if (System.Net.NetEventSource.Log.IsEnabled())
153 {
154 System.Net.NetEventSource.Error(null, System.SR.Format(System.SR.net_log_operation_failed_with_error, "AcquireCredentialsHandle", $"0x{num:X}"), "AcquireCredentialsHandle");
155 }
156 throw new Win32Exception(num);
157 }
158 return outCredential;
159 }
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.