LHFunctionHook
struct LHFunctionHook {}
Describes a function hook
-
A pointer to the function to hook
Declaration
Objective-C
void *function
-
A pointer to the replacement function that will get called in place
Declaration
Objective-C
void *replacement
-
If not null, this pointer gets written to with the address of a trampoline that lets you call the original function - note: Setting oldptr to null will allow libhooker to hook smaller functions and will skip over several checks since it does not need to try preserving the original function
Declaration
Objective-C
void *oldptr
-
An optional field that may be populated with a pointer to an LHFunctionHookOptions struct
Declaration
Objective-C
struct LHFunctionHookOptions *options