c++ / delphi package - dll injection and api hooking
- Posts: 55
- Joined: Mon Jan 21, 2013 4:00 pm
Several hooking engines have built-in support for reentrance protection, i.e. if you hook is called from inside original function hook.
Is there some similar mechanism in madCodeHook ?
- Site Admin
- Posts: 10328
- Joined: Sun Mar 21, 2004 5:25 pm
I have some such protection in 32bit, but not yet in 64bit. It's on my to do list to add support for that, but I haven't gotten around to it yet. Nobody has ever asked for this yet, so priority hasn't been very high so far. You're the first one asking...
- Posts: 1
- Joined: Wed May 08, 2019 11:29 am
+1 to request.
Out project hooks 100+ WinApi functions. So we implemented re-entrance protection on our side. Based on our tests sometime we have 5+ hooked functions deep in call stack. Our protection based on TLS variables, so it give performance impact on such situations. So it will be good if you can implement such protection on trampoline side.