move dinput hooks into hook.c
This commit is contained in:
parent
e37aa21ae5
commit
369d3c2b65
5 changed files with 11 additions and 17 deletions
|
@ -13,8 +13,6 @@ typedef HRESULT(WINAPI* DIDGETDEVICEDATAPROC)(IDirectInputDeviceA*, DWORD, LPDID
|
|||
extern DIRECTINPUTCREATEAPROC real_DirectInputCreateA;
|
||||
extern DIRECTINPUT8CREATEPROC real_DirectInput8Create;
|
||||
|
||||
void dinput_hook();
|
||||
void dinput_unhook();
|
||||
HRESULT WINAPI fake_DirectInputCreateA(HINSTANCE hinst, DWORD dwVersion, LPDIRECTINPUTA* lplpDirectInput, LPUNKNOWN punkOuter);
|
||||
HRESULT WINAPI fake_DirectInput8Create(HINSTANCE hinst, DWORD dwVersion, REFIID riidltf, LPDIRECTINPUT8* ppvOut, LPUNKNOWN punkOuter);
|
||||
|
||||
|
|
|
@ -64,6 +64,7 @@ extern int g_hook_method;
|
|||
extern BOOL g_hook_active;
|
||||
|
||||
void hook_init();
|
||||
void hook_early_init();
|
||||
void hook_exit();
|
||||
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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue