this two link we teach you how to hook a function from dll or any application,
http://www.securitytube.net/Import-Address-Table-Hooking-in-Windows-video.aspx
http://sandsprite.com/CodeStuff/IAT_Hooking.html
take care
Note: Registration is required to post to the forums.