how can this be done?

the dll i am using will be injected into another app as it's used in a hook, and in the getmsgproc function, i would like to send the calling .exe a string everytime it loops.

i think the best way to do this would be using pipes, as the calling app may not be an .exe, but could be a dll.

cheers