You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
466B

  1. #include <Windows.h>
  2. #include <cstdint>
  3. #include <iostream>
  4. #include "../test_cases/test_cases.h"
  5. #include "abstracthook.h"
  6. #include "mhook.h"
  7. #pragma comment(lib, "..\\x64\\release\\test_cases.lib")
  8. extern AbstractHookEngine* g_mhook;
  9. int main(int argc, char** argv) {
  10. AbstractHookEngine* engines[] = {
  11. g_mhook,
  12. };
  13. for(auto&& x : engines) {
  14. x->hook_all();
  15. SelfTest();
  16. std::cout << x->name() << ':' << x->all_hooked() << '\n';
  17. x->unhook_all();
  18. }
  19. }