From d0f91aed16a1cb40df6e1ab7c19b17410888906d Mon Sep 17 00:00:00 2001 From: BDKPlayer Date: Wed, 1 Apr 2020 20:57:35 +0200 Subject: Removed detours dependency --- VmtHook.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 VmtHook.h (limited to 'VmtHook.h') diff --git a/VmtHook.h b/VmtHook.h new file mode 100644 index 0000000..9304602 --- /dev/null +++ b/VmtHook.h @@ -0,0 +1,20 @@ +#pragma once + +#include +#include + + +class VmtHook +{ +private: + void** vmt; + std::map hookedfuncs; + +public: + VmtHook(void** vmt); + + void* Hook(int index, void* hookedFunction); + + bool Unhook(int index); + void Unhook(); +}; -- cgit v1.2.3