2 Commits (293f2a969fcda19b59436269cba68d748270de3e)

Author SHA1 Message Date
Iain Patterson fdf66ebb17 Try to kill the process tree gracefully.
Before calling TerminateProcess() on all processes assocatiated with
the monitored application, enumerate all windows and threads and
post appropriate messages to them.  If the application bothers to
listen for such messages it has a chance to shut itself down gracefully.

If the application ignores this chance to do the right thing it's
fair game for termination.
14 years ago
Iain Patterson 8d8036e4f1 Kill process tree when stopping service.
Ensure that all child processes of the monitored application are
killed when the service stops by recursing through all running
processes and terminating those whose parent is the application
or one of its descendents.
14 years ago