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

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

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

Definition at line 157 of file SSPIWrapper.cs.

157 : unmanaged
158 {
159 Span<T> span = MemoryMarshal.CreateSpan(ref attribute, 1);
160 int num = secModule.QueryContextAttributes(securityContext, contextAttribute, MemoryMarshal.AsBytes(span), safeHandleType, out sspiHandle);
161 if (num != 0)
162 {
163 if (System.Net.NetEventSource.Log.IsEnabled())
164 {
165 System.Net.NetEventSource.Error(null, $"ERROR = {ErrorDescription(num)}", "QueryBlittableContextAttributes");
166 }
167 return false;
168 }
169 return true;
170 }
static readonly System.Net.NetEventSource Log
static void Error(object thisOrContextObject, FormattableString formattableString, [CallerMemberName] string memberName=null)
int QueryContextAttributes(System.Net.Security.SafeDeleteContext phContext, global::Interop.SspiCli.ContextAttribute attribute, Span< byte > buffer, Type handleType, out SafeHandle refHandle)

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