I want that the program execution stop when I launch one application using WinExec/CreateProcess/ShellExecute or another one and continue when the application that I launched close.
WinExec('App.exe', sw_normal); //open the app and wait
// When App.exe close;
MessageDlg('App stoped.', mtInformation,[mbOk], 0);
Another solution is launch the app and track the finalization using API but I don't know the correct function.
Hope to be clear.