diff options
Diffstat (limited to 'VmtHook.h')
-rw-r--r-- | VmtHook.h | 20 |
1 files changed, 20 insertions, 0 deletions
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 <Windows.h> +#include <map> + + +class VmtHook +{ +private: + void** vmt; + std::map<int, void*> hookedfuncs; + +public: + VmtHook(void** vmt); + + void* Hook(int index, void* hookedFunction); + + bool Unhook(int index); + void Unhook(); +}; |