How to use DetourAttach() for a pointer to a function in hex?
问题 I am trying to make a tutorial using the detour library. In older version of the detour library v1.5 the function DetourFunction was used to define the address so the DLL knows where to look for the function. It could for example be used as follows: InsertDateTime = (int (__stdcall*)(int))DetourFunction((PBYTE)0x01006F10, (PBYTE)MyInsertDateTime) see http://www.moddb.com/groups/ibepex/tutorials/function-hooking However in newer versions the function is changed to LONG DetourAttach( PVOID *