Detect application start

  • Thread starter Thread starter Marius Groenendijk
  • Start date Start date
M

Marius Groenendijk

Hi NG,

I would like to implement an app that would intercept application start and
possibly interrupt its startup (or kill the process immediately).
For ex. see if Sol[itaire].exe is being started and stop it.

So the question is:

How to detect that a particular application is being started?

Any pointers are welcome.

Thx,
Marius.
 
One way would be to get an array of running processes with
System.diagnostics.process.getprocesses, then loop the array to look for the
process name. Then process.kill, process.close, or process.closemainwindow
if found.
 
Back
Top