title: GetExitCodeProcess() return 1 when process is not yet finished
body: <p>If I create a process and two pipe sets for it, and that process needs at a certain time some user input, the <code>GetExitCodeProcess()</code> from the Windows C API returns always <code>1</code>. As an example you can take the Windows <code>time</code> command, this will return:</p>
  
  <pre><code>The current time is: ...
  Enter the new time:
  </code></pre>
  
  <p>And then exits immediately without waiting for input.</p>
  
  <p>I don't want the process to finish until the it has really finished so I can pipe input to it. How can I solve this issue.</p>
  
  <p>I have built this loop (I still want to be able to determine when to process has finished):</p>
  
  <pre><code>for (;;)
  {
      /* Pipe input and output */
      if (GetExitCodeProcess(...) != STILL_ACTIVE) break;
  }
  </code></pre>
  
  <p>Thanks in advance.</p>