Process Monitor Hooks
- From: "decentsmile" <lashary@xxxxxxxxx>
- Date: 16 Dec 2005 06:42:01 -0800
Hi everyone,
I have been reading through articles but yet not there exactly. Here is
what i require
Write a small Process Monitor Application. This application will
receive notification whenever a process is created or destroyed. The
Notification should receive the information about the process as well.
I am developing it in .Net environment using C#. I infact have a list
of processes to monitor[the list can change], when a process out of
that list is terminated, i have to restart it. Two options come to my
mind
1- Write a timer. Whenever a timer is fired - i get list of all the
processes and check if one of mine is not there and try restarting it
2- Somehoe Hook into this process creation/destruction
I think the timer option will be less expensive in the form of
performance burden on the system as the hook will be system-wide and
will be invoked on every API call. Please comment on this as well.
Also Is there a way to do this through hooks at all ?
I will appreciate help on this
Regards
DKhan
.
- Follow-Ups:
- Re: Process Monitor Hooks
- From: jimrib
- Re: Process Monitor Hooks
- Prev by Date: Re: Computer boot time, swap file size and swap file usage
- Next by Date: Re: Notify when a process is created (launched)
- Previous by thread: Notify when a process is created (launched)
- Next by thread: Re: Process Monitor Hooks
- Index(es):
Relevant Pages
|