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

◆ ReleaseHandle()

override bool System.Security.Cryptography.SafeProvHandle.ReleaseHandle ( )
inlineprotected

Definition at line 82 of file SafeProvHandle.cs.

83 {
84 if (!_fPersistKeyInCsp && (_flags & 0xF0000000u) == 0)
85 {
86 uint dwFlags = (_flags & 0x20u) | 0x10u;
87 global::Interop.Advapi32.CryptAcquireContext(out var phProv, _containerName, _providerName, _type, dwFlags);
88 phProv.Dispose();
89 }
90 bool result = global::Interop.Advapi32.CryptReleaseContext(handle, 0);
91 SetHandle(IntPtr.Zero);
92 return result;
93 }

References System.Security.Cryptography.SafeProvHandle._containerName, System.Security.Cryptography.SafeProvHandle._flags, System.Security.Cryptography.SafeProvHandle._fPersistKeyInCsp, System.Security.Cryptography.SafeProvHandle._providerName, System.Security.Cryptography.SafeProvHandle._type, System.Runtime.InteropServices.SafeHandle.handle, System.Runtime.InteropServices.SafeHandle.SetHandle(), and System.IntPtr.Zero.