View Single Post
your-name-here
Member
Join Date: May 2007
Old 04-28-2010 , 18:24   Re: Dynamic detouring library
Reply With Quote #3

Quote:
Originally Posted by DJ Tsunami View Post
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

Last edited by your-name-here; 04-28-2010 at 18:32.
your-name-here is offline