#ifndef HOOK_H #define HOOK_H /** x64 Hooking Library. */ typedef enum HOOK_STATUS { SUCCESS = 0, NOT_ENOUGH_SPACE = -1, CANT_ALLOC = -2, LOOPS_INTO_OVERWRITTEN_CODE = -3 }; /** \brief \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 */ int hook(void* function, size_t functionLength, void* replacement, void* trampoline); #endif