simple_tests with mhook

This commit is contained in:
2017-12-27 19:07:15 +01:00
parent 72af6439a7
commit 72b73ee462
8 changed files with 64 additions and 14 deletions

View File

@@ -1,11 +1,21 @@
#pragma once
namespace MHook_Hooks {
uint64_t hookSmall(void);
uint64_t hookBranch(uint64_t);
uint64_t hookRip_relative(void);
};
class MHook : public AbstractHookEngine {
public:
bool hook_all();
bool unhook_all();
bool all_hooked();
MHook() : AbstractHookEngine("MHook") {
}
friend uint64_t MHook_Hooks::hookSmall(void);
friend uint64_t MHook_Hooks::hookBranch(uint64_t);
friend uint64_t MHook_Hooks::hookRip_relative(void);
};