Skip to main content

Crate hooking

Crate hooking 

Source

Re-exports§

pub use hooks::Hook;
pub use hooks::HookData;
pub use hooks::HookWriter;

Modules§

__macro_support
arena
Arenas hold the code generated for hooks: trampolines and relocated instructions. Placing code in an arena must never change the protection of code that may already be running.
asm
error
hooks
mem
patch
Patch writers overwrite live code in the hooked function. They must never leave the target’s pages non-executable, as other threads may be running code on them.

Functions§

original_function_ptr
The original function of the hook currently running, which its trampoline passes in r10, with a checksum of it in r11. Returns None when not called from a hook.

Attribute Macros§

hook