more hook 3/4 performance improvements
This commit is contained in:
parent
9c555c8e05
commit
de02f46413
3 changed files with 81 additions and 90 deletions
|
@ -6,7 +6,7 @@
|
|||
|
||||
|
||||
typedef struct hook_list_data { char function_name[32]; PROC new_function; PROC* function; } hook_list_data;
|
||||
typedef struct hook_list { char module_name[32]; BOOL enabled; hook_list_data data[32]; } hook_list;
|
||||
typedef struct hook_list { char module_name[32]; BOOL enabled; hook_list_data data[24]; } hook_list;
|
||||
|
||||
typedef BOOL (WINAPI* GETCURSORPOSPROC)(LPPOINT);
|
||||
typedef BOOL(WINAPI* CLIPCURSORPROC)(const RECT*);
|
||||
|
@ -65,7 +65,8 @@ extern BOOL g_hook_active;
|
|||
|
||||
void hook_init();
|
||||
void hook_exit();
|
||||
void hook_patch_iat(HMODULE hMod, char *moduleName, char *functionName, PROC newFunction);
|
||||
void hook_patch_iat(HMODULE hmod, BOOL unhook, char* module_name, char* function_name, PROC new_function);
|
||||
void hook_patch_iat_list(HMODULE hmod, BOOL unhook, hook_list* hooks);
|
||||
void hook_create(hook_list* hooks);
|
||||
void hook_revert(hook_list* hooks);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue