Source code for a practical example on function hooking