How to know the program that is invoked by my program exit?
You can use WaitForSingleObject(hProcess,INFINITE) on the process handle
that is returned in your PROCESS_INFORMATION structure. Just be sure to
close the handle when you're done with it...
> Hi all:
> I know this question has been asked before but I cannot find an answer
> anywhere else.
> I have a simple MFC application that is calling a 3rd party application
> using CreateProcess(),
> the problem is I need to wait for the application to exit
> before calling the next application.
> Thanks in advance!