Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
DuplicateSafeNCryptKeyHandle.cs
Go to the documentation of this file.
1using System;
3
5
7{
8 private readonly SafeNCryptKeyHandle _original;
9
11 {
12 bool success = false;
13 original.DangerousAddRef(ref success);
14 if (!success)
15 {
16 throw new CryptographicException();
17 }
18 SetHandle(original.DangerousGetHandle());
19 _original = original;
20 }
21
22 protected override bool ReleaseHandle()
23 {
26 return true;
27 }
28}
void DangerousAddRef(ref bool success)
Definition SafeHandle.cs:76
static readonly IntPtr Zero
Definition IntPtr.cs:18