Idea
saw something like this used in a different concept.
is it possible to hide your detours by setting the page flags of the function you've detoured so that reading cause an exception you then restore the original function and resume execution without changing the page flags back?
you then continue execution until you catch the exception from the end of the function, then restore detour
youthink it will work?
You dont need detours to hook a function with the method you mentioned.
Just set the page flag PAGE_GUARD and let it raise an exception. Catch this exception with an exceptionhandler and use EIP to redirect to any function you want.
Never used it, but I heard it eats alot of frames per second when you hook a function called every frame. Some say its slow, some say its acceptable.