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

◆ AcquireCredentialsHandle() [6/6]

static System.Net.Security.SafeFreeCredentials System.Net.SSPIWrapper.AcquireCredentialsHandle ( System::Net::ISSPIInterface secModule,
string package,
global::Interop::SspiCli::CredentialUse intent,
ref System::Net::Security::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 System.Net.Security.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 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
int AcquireCredentialsHandle(string moduleName, global::Interop.SspiCli.CredentialUse usage, ref System.Net.Security.SafeSspiAuthDataHandle authdata, out System.Net.Security.SafeFreeCredentials outCredential)

References System.Net.Security.SafeFreeCredentials.AcquireCredentialsHandle(), System.Net.NetEventSource.Error(), System.SR.Format(), System.Net.NetEventSource.Log, and System.SR.net_log_operation_failed_with_error.