This commit is contained in:
2017-12-27 22:47:29 +01:00
parent 97f6ad47fe
commit 05573a8666
9 changed files with 175 additions and 14 deletions

View File

@@ -1,6 +1,6 @@
#include <Windows.h>
#include <cstdint>
#include <iostream>
#include <iomanip>
#include "../test_cases/test_cases.h"
#include "abstracthook.h"
@@ -9,12 +9,14 @@
#pragma comment(lib, "..\\x64\\debug\\test_cases.lib")
extern AbstractHookEngine* g_mhook,
*g_PolyHook;
*g_PolyHook,
*g_MinHook;
int main(int argc, char** argv) {
AbstractHookEngine* engines[] = {
g_mhook,
g_PolyHook
g_PolyHook,
g_MinHook
};
for(auto&& x : engines) {
@@ -25,7 +27,7 @@ int main(int argc, char** argv) {
}
SelfTest();
std::cout << x->name() << ':' << x->all_hooked() << '\n';
std::cout << *x << std::endl;
x->unhook_all();
}
}