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

◆ AcquireCredentialsHandle() [2/6]

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

Definition at line 131 of file SSPIWrapper.cs.

132 {
133 SafeFreeCredentials outCredential;
134 int num = secModule.AcquireCredentialsHandle(package, intent, scc, out outCredential);
135 if (num != 0)
136 {
137 if (System.Net.NetEventSource.Log.IsEnabled())
138 {
139 System.Net.NetEventSource.Error(null, System.SR.Format(System.SR.net_log_operation_failed_with_error, "AcquireCredentialsHandle", $"0x{num:X}"), "AcquireCredentialsHandle");
140 }
141 throw new Win32Exception(num);
142 }
143 return outCredential;
144 }
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.