inital commit. currently all winapi
This commit is contained in:
22
hook.h
Normal file
22
hook.h
Normal 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
|
||||
Reference in New Issue
Block a user