SwiftlyS2

IUnmanagedMemory

Interface IUnmanagedMemory

Namespace: SwiftlyS2.Shared.Memory

Assembly: SwiftlyS2.CS2.dll

public interface IUnmanagedMemory

Properties

Address

The address of the unmanaged pointer.

nint Address { get; }
Property Value

Methods

AddHook(MidHookDelegate)

Hook a native function at the specified address with a managed callback. The callback receives a context structure that allows reading and modifying CPU registers.

Guid AddHook(MidHookDelegate callback)
Parameters
  • callback MidHookDelegate — The callback to call when the code reaches that address.
Returns

RemoveHook(Guid)

Unhook a hook by its id.

void RemoveHook(Guid id)
Parameters
  • id Guid — The id of the hook to unhook.

On this page