HOOK_LIB is a macro for you to use. It makes things easier and readable.
#define MY_HOOK(lib, offset, ptr, orig) (THIS IS A MACRO)
OR
hook((void *)getAbsoluteAddress(lib, string2Offset(offset)), (void *)ptr, (void **)&orig);
To use the macro, you have to understand it and follow its...