Use Microsoft Detours for Windows API Hooks

This commit is contained in:
FunkyFr3sh 2019-04-06 05:35:23 +02:00
parent 6557ea669b
commit 55e62891d8
25 changed files with 13324 additions and 94 deletions

View file

@ -41,11 +41,13 @@ extern MOVEWINDOWPROC real_MoveWindow;
extern SENDMESSAGEAPROC real_SendMessageA;
extern SETWINDOWLONGAPROC real_SetWindowLongA;
extern int HookingMethod;
extern BOOL Hook_Active;
void Hook_Init();
void Hook_Exit();
void Hook_PatchIAT(HMODULE hMod, char *moduleName, char *functionName, PROC newFunction);
PROC Hook_HotPatch(PROC function, PROC newFunction);
void Hook_Create(char *moduleName, char *functionName, PROC newFunction, PROC *function);
void Hook_Revert(char *moduleName, char *functionName, PROC newFunction, PROC *function);
#endif