blob: 53ee3b3354a04a4032c99b4e7f2ccede6cbf9143 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#ifndef HOOK_H_INCLUDED
#define HOOK_H_INCLUDED
#define ENDSCENE_OFFSET 0x2179F
typedef __int32 (__stdcall* EndScene_t)(LPDIRECT3DDEVICE9);
class Hook
{
public:
static bool hookEndScene(EndScene_t pHookFunc, EndScene_t *pEndScene, bool unhook);
static BYTE* Detour(BYTE *src, const BYTE *dst);
static void UnDetour(BYTE *src);
};
#endif // HOOK_H_INCLUDED
|