title: How to create a pipe in c under Windows
body: <p>I am trying to create a pipe in my c program to input data to another program myProgram.exe. All I need to do is to get myProgram running and send "quit" from the main program. The problem is I don't know how I can create a pipe in c. </p>
  
  <p>I got a working Perl example somewhere:</p>
  
  <pre><code>open(myHandle, ".../myProgram.exe");
  //... (do something else) ...
  printf(myHandle, "quit");
  close(myHandle);
  </code></pre>
  
  <p>Can somebody please help me translate this into c code? Please keep in mind I'm running under Windows so there is no unistd.h available.</p>
  
  <p>Cheers, B</p>