Quote:
Originally Posted by DJ Tsunami
Forgive my ignorance, but does this mean you can dynamically call DECLARE_HOOK from a function, instead of having to globally declare it like CDetour?
You still call it globally in your test code, but your sentence about Python implies you can.
|
DECLARE_HOOK was really a macro I wrote for making my life easier, so it's not a "function".
To answer your question, yes you can hook functions dynamically without hardcoding the prototypes for them. This can be done with any scripting language you can bind DynDetours to
You can block the function call and override the return value, or you can modify the parameters of the function and call the original. All dynamically without hardcoding