Hook<TFunction>
Namespace: SharpPluginLoader.Core.Memory
Represents a native function hook.
public class Hook<TFunction> : System.IDisposable
Type Parameters
TFunction
The type of the hooked function
Inheritance Object → Hook<TFunction>
Implements IDisposable
Properties
Original
Gets the original function.
public TFunction Original { get; }
Property Value
TFunction
IsEnabled
Gets a value indicating whether the hook is enabled.
public bool IsEnabled { get; }
Property Value
Methods
Enable()
Enables the hook.
public void Enable()
Disable()
Disables the hook.
public void Disable()
Dispose()
public void Dispose()
Finalize()
protected void Finalize()