Class Hook<TFunction>
- Namespace
- SharpPluginLoader.Core.Memory
- Assembly
- SharpPluginLoader.Core.dll
Represents a native function hook.
public class Hook<TFunction> : IDisposable
Type Parameters
TFunction
The type of the hooked function
- Inheritance
-
Hook<TFunction>
- Implements
- Inherited Members
Properties
IsEnabled
Gets a value indicating whether the hook is enabled.
public bool IsEnabled { get; }
Property Value
Original
Gets the original function.
public TFunction Original { get; }
Property Value
- TFunction
Methods
Disable()
Disables the hook.
public void Disable()
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()
Enable()
Enables the hook.
public void Enable()
~Hook()
protected ~Hook()