Expand description
This module allows you to call another function before an existing function or to replace it with another function.
Functions§
- add_
hook ⚠ - Sets up a trampoline to replace the original function with a new one.
- disable_
hook - Description
- enable_
hook - Enables a previously added hook, replacing the original function with the new one.
- get_
trampoline - Key: ’static pointer to original functionvalue: trampoline pair fn ptr.
- remove_
hook - Removes a previously added hook by disabling the trampoline and restoring the original function.