polyhook
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user