Vectored Exception Handling Hooking Class
How to use:
- #include "LeoSpecial"
- instantiation a LeoHook Class
- Calls LeoHook's Hook() function, passing in a pointer to the original function as first argument and pointer to hook function to as second parameter.
- ???
- Profit
- Call Unhook() to remove the hook.
I did not build a system with multiple hooks in it, so if there is a need to hook multiple functions, construct multiple LeoHook's class.
Enjoy!