can't write in console application from win32 application
<p>I’m trying to control a console application from C# win32 application, the console application (oclHashcat-lite32) is unknown for me, I don’t have the code, until now I’m not capable to write in the console application. I want to write any command (e.g. “q” which terminates the underlying process) but it seems that my code is not writing the input of the console application. Here is the code: </p>

<pre><code>StreamWriter processStreamWriter = OCLProcess.StandardInput;
processStreamWriter.Write("q"); 
processStreamWriter.Close(); 
</code></pre>

<p>I also tried using </p>

<pre><code>processStreamWriter.WriteLine("q");
</code></pre>

<p>Instead of</p>

<pre><code> processStreamWriter.Write("q");
</code></pre>

<p>But it did not work. Any suggestion?  </p>
