sySimpleHook
Warning
Register context of the hooked function is not preserved with this method. Hooks will clobber the volatile registers.
Warning
The overwritten instruction at address
is not run or preserved.
Signature
Parameters
Parameter | Type | Description |
---|---|---|
address |
u32 | The address to hook |
replacement |
void* | function pointer to the hook body |
Description
Injects a hook at the target address. Hooks injected via this method will NOT return execution to the original function by default.
This hook type is commonly used for raw asm functions.