Skip to main content
Version: 2.x

Class OdinHandle

Declaration
public abstract class OdinHandle : SafeHandleZeroOrMinusOneIsInvalid, IDisposable

Inheritance: System.Object -> System.Runtime.ConstrainedExecution.CriticalFinalizerObject -> System.Runtime.InteropServices.SafeHandle -> Microsoft.Win32.SafeHandles.SafeHandleZeroOrMinusOneIsInvalid

Derived:
OdinNative.Core.Handles.OdinCryptoHandle, OdinNative.Core.Handles.OdinLibraryHandle

Implements:
System.IDisposable

Properties

IsAlive

Declaration
public bool IsAlive { get; }

IsInitialized

Declaration
public bool IsInitialized { get; protected set; }

Location

Declaration
public string Location { get; }

Platform

Declaration
public SupportedPlatform Platform { get; }

Methods

GetLibraryMethod<T>(string, out T)

Declaration
public void GetLibraryMethod<T>(string name, out T t)
Parameters
TypeName
System.Stringname
<T>t
Type Parameters
  • T

ReleaseHandle()

When overridden in a derived class, executes the code required to free the handle.

Declaration
protected override bool ReleaseHandle()
Returns

System.Boolean: true if the handle is released successfully; otherwise, in the event of a catastrophic failure, false. In this case, it generates a releaseHandleFailed Managed Debugging Assistant.

Implements

  • System.IDisposable