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.

22 lines
452B

  1. #ifndef HOOK_H
  2. #define HOOK_H
  3. /**
  4. x64 Hooking Library.
  5. */
  6. typedef enum HOOK_STATUS
  7. {
  8. SUCCESS = 0,
  9. NOT_ENOUGH_SPACE = -1,
  10. CANT_ALLOC = -2,
  11. LOOPS_INTO_OVERWRITTEN_CODE = -3
  12. };
  13. /**
  14. \brief
  15. \param functionLength Length of the function you want to hook. If the length isn't known, pass 0 and the library will try to figure it out
  16. */
  17. int hook(void* function, size_t functionLength, void* replacement, void* trampoline);
  18. #endif