title: Pipe output(stdout) from running process Win32Api
body: <p>I need to get (or pipe) the output from a process that is already running, using the windows api.</p>
  
  <p>Basically my application should allow the user to select a window to pipe the input from, and all input will be displayed in a console. I would also be looking on how to get a pipe on stderr later on.</p>
  
  <p>Important: I did not start the process using CreateProcess() or otherwise. The process is already running, and all I have is the handle to the process (returned from GetWindowThreadProcessId()).</p>