Detect application start

  • Thread starter Marius Groenendijk
  • 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.
 
C

CR

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top