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

◆ QueryBlittableContextAttributes< T >() [1/4]

static bool System.Net.SSPIWrapper.QueryBlittableContextAttributes< T > ( ISSPIInterface secModule,
SafeDeleteContext securityContext,
global::Interop::SspiCli::ContextAttribute contextAttribute,
ref T attribute )
inlinestatic
Type Constraints
T :unmanaged 

Definition at line 331 of file SSPIWrapper.cs.

331 : unmanaged
332 {
333 Span<T> span = MemoryMarshal.CreateSpan(ref attribute, 1);
334 SafeHandle refHandle;
335 int num = secModule.QueryContextAttributes(securityContext, contextAttribute, MemoryMarshal.AsBytes(span), null, out refHandle);
336 using (refHandle)
337 {
338 if (num != 0)
339 {
340 if (System.Net.NetEventSource.Log.IsEnabled())
341 {
342 System.Net.NetEventSource.Error(null, $"ERROR = {ErrorDescription(num)}", "QueryBlittableContextAttributes");
343 }
344 return false;
345 }
346 return true;
347 }
348 }
static readonly System.Net.NetEventSource Log
static void Error(object thisOrContextObject, FormattableString formattableString, [CallerMemberName] string memberName=null)

References System.Net.NetEventSource.Error(), and System.Net.NetEventSource.Log.