inital commit. currently all winapi

This commit is contained in:
2016-04-03 17:04:20 +02:00
commit 3b681758f4
76 changed files with 13747 additions and 0 deletions

22
hook.h Normal file
View File

@@ -0,0 +1,22 @@
#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