Unfortunately all the comments in the code are not in English so I couldn't quite tell what was intended. My limited experience has been that the calls to the output stream will more or less tell you whats happening. A call to ReadToEnd will block until the process is complete. A call to ReadLine will block until the next line comes in. If that call returns NULL, the process is done. That has worked for me at least.
-Peter
|