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

◆ GetPropertyAsIntPtr()

static unsafe IntPtr Internal.Cryptography.Helpers.GetPropertyAsIntPtr ( this SafeNCryptHandle ncryptHandle,
string propertyName,
CngPropertyOptions options )
inlinestatic

Definition at line 112 of file Helpers.cs.

113 {
114 Unsafe.SkipInit(out IntPtr intPtr);
115 int pcbResult;
116 global::Interop.NCrypt.ErrorCode errorCode = global::Interop.NCrypt.NCryptGetProperty(ncryptHandle, propertyName, &intPtr, IntPtr.Size, out pcbResult, options);
117 return errorCode switch
118 {
119 global::Interop.NCrypt.ErrorCode.NTE_NOT_FOUND => IntPtr.Zero,
120 global::Interop.NCrypt.ErrorCode.ERROR_SUCCESS => intPtr,
121 _ => throw errorCode.ToCryptographicException(),
122 };
123 }
static int Size
Definition IntPtr.cs:21
static readonly IntPtr Zero
Definition IntPtr.cs:18

References System.options, System.IntPtr.Size, and System.IntPtr.Zero.