Reentrance protection

c++ / delphi package - dll injection and api hooking
Post Reply
_NN_
Posts: 55
Joined: Mon Jan 21, 2013 4:00 pm

Reentrance protection

Post by _NN_ »

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 ?
Thanks.
madshi
Site Admin
Posts: 10754
Joined: Sun Mar 21, 2004 5:25 pm

Re: Reentrance protection

Post by madshi »

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...
starix
Posts: 1
Joined: Wed May 08, 2019 11:29 am

Re: Reentrance protection

Post by starix »

+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.
Post Reply