Link to home
Start Free TrialLog in
Avatar of sergio_2001
sergio_2001

asked on

Detect program execution.

Hi all,

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.
begin
   WinExec('App.exe', sw_normal); //open the app and wait
   // When App.exe close;
   MessageDlg('App stoped.', mtInformation,[mbOk], 0);
end;

Another solution is launch the app and track the finalization using API but I don't know the correct function.

Hope to be clear.
Regards
Paulo
   

ASKER CERTIFIED SOLUTION
Avatar of Madshi
Madshi

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial