Hook a raw this-pointer. If you need to read the return value of the function, choose a post hook.
int HookRaw(HookMode mode, Address addr, DHookCallback callback)
The desired hook mode - pre or post. A pre hook calls your callback BEFORE the original function is called. You can access the parameters, set the return value, and skip the original function. A post hook calls your callback AFTER the original function executed. You can access the parameters and get/set the return value.
This pointer address.
Callback function.
A hookid on success, INVALID_HOOK_ID otherwise.
Invalid setup handle, invalid address, invalid hook type or invalid callback.
This documentation was generated automatically using pawn-docgen written by xPaw for AlliedMods.