inline hook lib for x86/x64