How do I call an executable from a C program (using winapi)?
 [CreateProcess()][1] came up a few times searching google....   
Is it OK to assume this is the safest and most efficient method?  
If so, I would like to use the output of the called process.  
How do I know it has completed before continuing on in the C program?

Thanks.


  [1]: http://msdn.microsoft.com/en-us/library/ms682425%28VS.85%29.aspx
How do I call an executable from a C program (using winapi)?
===

 [CreateProcess()][1] came up a few times searching google....   
Is it OK to assume this is the safest and most efficient method?  
If so, I would like to use the output of the called process.  
How do I know it has completed before continuing on in the C program?

Thanks.


  [1]: http://msdn.microsoft.com/en-us/library/ms682425%28VS.85%29.aspx