My question might be easier to understand if I give some background information.
I made a nice writeprocessmemory, and readprocessmemory hook in a dll and a program to log the function calls of a selected process. Works fine for some programs, but not for others. So I thought, why not take the program you want to log, run it suspended, and change the import table of the selected functions to point to your code.
Any hints/tips/code would be appreciated. =)