Skip to main content

Class AsmHook

Manages a hook which can be used to intercept a call to native function. This class is basically a thin wrapper around the LocalHook type to provide helper functions.

Assembly: Dalamud.dll
View Source
Declaration
public sealed class AsmHook : IDalamudHook, IDisposable

Implements:
Dalamud.Hooking.IDalamudHook, System.IDisposable

Properties

Address

Gets a memory address of the target function.

View Source
Declaration
public nint Address { get; }

IsEnabled

Gets a value indicating whether or not the hook is enabled.

View Source
Declaration
public bool IsEnabled { get; }

IsDisposed

Gets a value indicating whether or not the hook has been disposed.

View Source
Declaration
public bool IsDisposed { get; }

BackendName

Gets the name of the hooking backend used for the hook.

View Source
Declaration
public string BackendName { get; }

Methods

Dispose()

Remove a hook from the current process.

View Source
Declaration
public void Dispose()

Enable()

Starts intercepting a call to the function.

View Source
Declaration
public void Enable()

Disable()

Stops intercepting a call to the function.

View Source
Declaration
public void Disable()

Implements