function profiler

Aug 23, 2013 at 2:56 PM
I'm trying to make a function profiler. the idea is to hook all the functions from kernel32, user32, gdi32, and ntdll.

This is a lot of functions. I know it is possible with Detours. But when I hook maybe a quarter of the functions from kernel32 I get a stack overflow exception. i upped the max hook constant to 10000 to combat the exception that arises from that.

will hooking a couple thousand functions be viable?