I'm currently using ShellExecute to execute an exe. I am looking for a way to make sure that the ShellExecute call does not return until the call has been completed..
ie : if you use ShellExecute as
long r = (long) ShellExecute(NULL,_T("open"),"myexe.exe", NULL, NULL, SW_SHOWNORMAL);
It will launch the myexe.exe but will not wait for it to complete. Is there any way for it to wait ?