summaryrefslogtreecommitdiff
path: root/csgo_wh/include/Hook.h
diff options
context:
space:
mode:
authorToni Uhlig <matzeton@googlemail.com>2018-07-02 01:06:39 +0200
committerToni Uhlig <matzeton@googlemail.com>2018-07-02 03:08:59 +0200
commitc2a2445897af17adb56a32dcf111312763a575d4 (patch)
treead459cdd682aff3a011d11b6f2a3c518c60dec6a /csgo_wh/include/Hook.h
initial commit
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'csgo_wh/include/Hook.h')
-rwxr-xr-xcsgo_wh/include/Hook.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/csgo_wh/include/Hook.h b/csgo_wh/include/Hook.h
new file mode 100755
index 0000000..53ee3b3
--- /dev/null
+++ b/csgo_wh/include/Hook.h
@@ -0,0 +1,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