Skip to main content
Version: 15.x (API 15) [Current]

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​
Declaration
public sealed class AsmHook : IDalamudHook, IDisposable

Implements:
Dalamud.Hooking.IDalamudHook, System.IDisposable

Properties​

Address​

Gets a memory address of the target function.

Declaration
public nint Address { get; }

IsEnabled​

Gets a value indicating whether the hook is enabled.

Declaration
public bool IsEnabled { get; }

IsDisposed​

Gets a value indicating whether the hook has been disposed.

Declaration
public bool IsDisposed { get; }

BackendName​

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

Declaration
public string BackendName { get; }

Methods​

Dispose()​

Remove a hook from the current process.

Declaration
public void Dispose()

Enable()​

Starts intercepting a call to the function.

Declaration
public void Enable()

Disable()​

Stops intercepting a call to the function.

Declaration
public void Disable()

Implements​