[SOLVED]Get notify when a running process(.exe) from windows is closed.
Is there any C++ windows API or Qt way so that i can get a signal that this process is closed/quit.
Do you mean any process ? An external process ? Process that you started ?
An external process.
gyll last edited by
probably the easiest and most portable way is to simply poll the existence of the process every NNN ms, for NNN>100ms this will cause minimal CPU load and you won't have to deal with catching OS-specific signals, or interfering with the message loop, etc
Did you mean using a timer so that it monitors all the processes?
Can i attach an external pid to QProcess and get signal when this attached process is closed.?
AFAIK, no there's not.
You might be interested by "this":http://msdn.microsoft.com/en-us/library/aa390425(VS.85).aspx
I am looking on it.