Files
hook_tests/tester/main.cpp

24 lines
466 B
C++

#include <Windows.h>
#include <cstdint>
#include <iostream>
#include "../test_cases/test_cases.h"
#include "abstracthook.h"
#include "mhook.h"
#pragma comment(lib, "..\\x64\\release\\test_cases.lib")
extern AbstractHookEngine* g_mhook;
int main(int argc, char** argv) {
AbstractHookEngine* engines[] = {
g_mhook,
};
for(auto&& x : engines) {
x->hook_all();
SelfTest();
std::cout << x->name() << ':' << x->all_hooked() << '\n';
x->unhook_all();
}
}