Link to home
Start Free TrialLog in
Avatar of mavi740218
mavi740218

asked on

ShellExecute

Hello

I'm using shellexecute, Is there a way to know when application has finished?

ASKER CERTIFIED SOLUTION
Avatar of DragonSlayer
DragonSlayer
Flag of Malaysia image

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
Avatar of Madshi
Madshi

Or you can use ShellExecuteEx with the SEE_MASK_NOCLOSEPROCESS flag. But DragonSlayer's code is alright.
Madshi is correct too, using the SEE_MASK_NOCLOSEPROCESS flag, you will get a process handle, and you can still use WaitForSingleObject on the process handle.
listening
Avatar of mavi740218

ASKER

Thanks to everybody, I'm working on it
mavi740218:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.