title: How to run a function in new process?
body: <p>Now I am in one of the threads of process <code>A</code>, I need to create new process <code>B</code> in current thread, and run in process <code>B</code> function <code>MyFunc()</code>. How can I do it ?
  I found how to create a child process from current process: <a href="http://msdn.microsoft.com/en-us/library/windows/desktop/ms682512%28v=vs.85%29.aspx" rel="nofollow">click</a> . But how can I run <code>MyFunc()</code> in this new process ? This 2 processes should run async, and not wait each other
  like in this example:</p>
  
  <pre><code>// Wait until child process exits.
  WaitForSingleObject( pi.hProcess, INFINITE );
  </code></pre>
  
  <p><strong>ETA:</strong>
  I work on windows</p>