How to use the Detour library in C++ properly for a simple hook of a function with known memory adress?
问题 I am having trouble to get my first hook using detour to work. I am using Detour 3.0. My code compiles fine and I can inject the DLL using Winject , however, the function which I am suppose to hook doesnt seem to be hooked. I am trying to hook the function InsertDateTime in notepad . http://www.9injector.com/winject-injector/ I have found the adress of the InsertDateTime in hex notation using IDA Pro Free . Is there anything fundmatal misstakes in the code below or is the memory in the