Jonathan Keljo's blog entry on the enter/leave/tailcall function hooks had a link to sample code that's been broken for a while.  You can now find the sample code here: FunctionHooks.zip