title: How to wait for a process to finish C++
body: <p>I am creating a process with that code:</p>
  
  <pre><code>CreateProcess(NULL, "process.exe", NULL, NULL, TRUE, 0, NULL, NULL, %ini_processo, %processo_info);
  </code></pre>
  
  <p>I need my code to wait for my process to finish before resuming. What is the method with C++ ?</p>