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

◆ AcquireCredentialsHandle() [2/6]

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

Definition at line 56 of file SafeFreeCredentials.cs.

57 {
58 int num = -1;
59 outCredential = new SafeFreeCredential_SECURITY();
60 num = global::Interop.SspiCli.AcquireCredentialsHandleW(null, package, (int)intent, null, authdata, null, null, ref outCredential._handle, out var _);
61 if (System.Net.NetEventSource.Log.IsEnabled())
62 {
63 System.Net.NetEventSource.Verbose(null, FormattableStringFactory.Create("{0} returns 0x{1:x}, handle = {2}", "AcquireCredentialsHandleW", num, outCredential), "AcquireCredentialsHandle");
64 }
65 if (num != 0)
66 {
67 outCredential.SetHandleAsInvalid();
68 }
69 return num;
70 }
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().