Pregunta

How do I know if the time limit has expired or the process was terminated by the user?

Process p = Process.Start(this.EmergencyApp, npLang);
p.WaitForExit(this.Timeout);
¿Fue útil?

Solución

WaitForExit() returns a boolean:

Return Value
true if the associated process has exited; otherwise, false.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top