title: It is possible to put a hook catching messages that are send to console by child process?
body: <p>So I start an ordinary console program and then create another process within it. Next the child process tries to write something onto console that is owned by parent process.</p>
  
  <p>Is it possible to put a hook on this console so when child process tries to write some text I could do search and replace on this text and put it changed onto the console.</p>
  
  <p>(I know it is possible with pipes, but here I ask specifically of doing it at the console level, because some programs behave differently if they see they are attached to pipes instead of console.)</p>
  
  <p>Has <code>SetWindowsHookEx</code> something to do with my question ?</p>