Catching Event

  • Thread starter Thread starter Deadly_M
  • Start date Start date
D

Deadly_M

I have asked this question before but it was a while ago , hope there are
some new readers here now

Windows XP, VB.NET

I want to catch the event of a program being run
for example user loads notepad, im assuming there is an event triggered that
can be caught with VB
i want to detect any programs being run not specifically notepad , but i
need to be able to read the program's .exe name back to my code

My program will most likely be running as a service if this helps
Thanx in advance

_____________________________________

Matthew Purves , (Deadly_M)
www.DeadlyM.com
 
Unless you are intercepting the execution of programs (you can do that, with
the registry) the oly way I see of doing this is using a timer, and listing
the programs that are running. Check Process class, under System.Diagnostics

Regards
 
im using that technique at the moment but to me it looks like a typical
example of bad code , ie a timer etc
Not that your suggestion is bad cause thats the way im doing it just now.
Thanx anyway , at least i know that the way im going just now isnt too bad
 
Back
Top