Hooking
Re: Hooking
No. Hooking is thread independent and (as far as madCodeHook is concerned) thread safe. Which means that if two different thread call the hooked API at the same time, also your hook callback function is called at the same time, in the context of those 2 different threads. It's your responsibility to make sure that your hook callback functions are written in a thread safe manner. E.g. avoid accessing global resources. Or if you do need access to global resources, use a critical section to serialize access.