mavi740218
asked on
ShellExecute
Hello
I'm using shellexecute, Is there a way to know when application has finished?
I'm using shellexecute, Is there a way to know when application has finished?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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
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.
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.