Use Microsoft Detours for Windows API Hooks
This commit is contained in:
parent
6557ea669b
commit
55e62891d8
25 changed files with 13324 additions and 94 deletions
|
@ -36,7 +36,8 @@
|
|||
BOOL screenshot(struct IDirectDrawSurfaceImpl *);
|
||||
void Settings_Load();
|
||||
void Settings_Save(RECT *lpRect, int windowState);
|
||||
void dinput_init();
|
||||
void DInput_Hook();
|
||||
void DInput_UnHook();
|
||||
|
||||
IDirectDrawImpl *ddraw = NULL;
|
||||
|
||||
|
@ -112,7 +113,7 @@ BOOL WINAPI DllMain(HANDLE hDll, DWORD dwReason, LPVOID lpReserved)
|
|||
}
|
||||
|
||||
timeBeginPeriod(1);
|
||||
dinput_init();
|
||||
DInput_Hook();
|
||||
break;
|
||||
}
|
||||
case DLL_PROCESS_DETACH:
|
||||
|
@ -122,6 +123,8 @@ BOOL WINAPI DllMain(HANDLE hDll, DWORD dwReason, LPVOID lpReserved)
|
|||
Settings_Save(&WindowRect, WindowState);
|
||||
|
||||
timeEndPeriod(1);
|
||||
Hook_Exit();
|
||||
DInput_UnHook();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue