API Reference

Oth

Hooking thread entry points.

Available Functions

FunctionDescription
oth.get_original_threadReturn the original thread this hook comes from, or nil if the current thread is not a hook.
oth.get_root_callbackRetrieves a function that can be used to call the original function in the context of a hook thread.
oth.hookHooks a function by utilizing a secure 'Off Thread' execution model that runs hook code on isolated threads. This method is specifically designed for hooking C functions where standard hookfunction might be detected.
oth.is_hook_threadReturns whether or not this thread is a hook thread.
oth.unhookUnhooks a function previously hooked with oth.hook.