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

◆ AcquireCredentialsHandle() [1/6]

static unsafe int System.Net.Security.SafeFreeCredentials.AcquireCredentialsHandle ( string package,
global::Interop::SspiCli::CredentialUse intent,
global::Interop::SspiCli::SCH_CREDENTIALS * authdata,
out SafeFreeCredentials outCredential )
inlinestaticinherited

Definition at line 72 of file SafeFreeCredentials.cs.

73 {
74 outCredential = new SafeFreeCredential_SECURITY();
75 long timeStamp;
76 int num = global::Interop.SspiCli.AcquireCredentialsHandleW(null, package, (int)intent, null, authdata, null, null, ref outCredential._handle, out timeStamp);
77 if (System.Net.NetEventSource.Log.IsEnabled())
78 {
79 System.Net.NetEventSource.Verbose(null, FormattableStringFactory.Create("{0} returns 0x{1:x}, handle = {2}", "AcquireCredentialsHandleW", num, outCredential), "AcquireCredentialsHandle");
80 }
81 if (num != 0)
82 {
83 outCredential.SetHandleAsInvalid();
84 }
85 return num;
86 }
static readonly System.Net.NetEventSource Log
static void Verbose(object thisOrContextObject, FormattableString formattableString, [CallerMemberName] string memberName=null)
static FormattableString Create(string format, params object?[] arguments)

References System.Runtime.CompilerServices.FormattableStringFactory.Create(), System.Net.NetEventSource.Log, and System.Net.NetEventSource.Verbose().