7public abstract class SafeNCryptHandle : SafeHandleZeroOrMinusOneIsInvalid
37 : base(ownsHandle: true)
42 : base(ownsHandle: true)
44 if (parentHandle ==
null)
96 val.DangerousAddRef(ref success);
97 val2.SetHandle(val.DangerousGetHandle());
121 global::Interop.NCrypt.ErrorCode errorCode = global::Interop.NCrypt.NCryptFreeObject(
handle);
122 return errorCode == global::Interop.NCrypt.ErrorCode.ERROR_SUCCESS;
OwnershipState _ownershipState
SafeNCryptHandle(IntPtr handle, SafeHandle parentHandle)
T DuplicateDuplicatedHandle< T >()
T DuplicateOwnerHandle< T >()
override bool ReleaseHandle()
bool ReleaseNativeHandle()
bool ReleaseNativeWithNCryptFreeObject()
static void SuppressFinalize(object obj)
void DangerousAddRef(ref bool success)
void SetHandle(IntPtr handle)
IntPtr DangerousGetHandle()
static string Argument_Invalid_SafeHandleInvalidOrClosed