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.

26 lines
585B

  1. #pragma once
  2. namespace MHook_Hooks {
  3. uint64_t hookSmall(void);
  4. uint64_t hookBranch(uint64_t);
  5. uint64_t hookRip_relative(void);
  6. void _AVX(float num, void* res);
  7. uint32_t _RDRAND(void);
  8. };
  9. class MHook : public AbstractHookEngine {
  10. public:
  11. bool hook_all();
  12. bool unhook_all();
  13. MHook() : AbstractHookEngine("MHook") {
  14. }
  15. friend uint64_t MHook_Hooks::hookSmall(void);
  16. friend uint64_t MHook_Hooks::hookBranch(uint64_t);
  17. friend uint64_t MHook_Hooks::hookRip_relative(void);
  18. friend void MHook_Hooks::_AVX(float num, void* res);
  19. friend uint32_t MHook_Hooks::_RDRAND(void);
  20. };