joe_pool_is
Contributor
In a C++ application, I need to call the external program "setup.exe" and then exit quickly. "setup.exe" performs updates on the program that calls it.
Windows has an API called CreateProcess() that I am thinking about using, but their example on http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/creating_processes.asp shows WaitForSingleObject() and CloseHandle() calls immediately after.
I can not wait. The program needs to shut down immediately after calling the external program "setup.exe".
Is there a different way to call CreateProcess() that is better for my situation, or do I need to use something else?
Windows has an API called CreateProcess() that I am thinking about using, but their example on http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/creating_processes.asp shows WaitForSingleObject() and CloseHandle() calls immediately after.
I can not wait. The program needs to shut down immediately after calling the external program "setup.exe".
Is there a different way to call CreateProcess() that is better for my situation, or do I need to use something else?