Much needed event

  • Thread starter Thread starter Sean Dudley
  • Start date Start date
S

Sean Dudley

Why is there a filesystemwatcher but not, say a processwatcher?

I need an event to fire whenever a new process has been created. Obviously
the taskbar is receiving such an event. Anyone know how to do this in c#?
Or if it can be done?

I find it odd that I can wait for a task to terminate and therefore easily
receive it's termination event but not know when any tasks are created.

I really appreciate ANY help on this it is driving me mad!


-Sean
 
You need to use a separate thread to poll for this information. Windows does a
special thing with the
TaskBar where it sends windows messages based on control styles and other such
nonsense to notify
when new windows applications are running.
 
so there's no way a windows hook could be setup to register new windows in
realtime?
 
Back
Top