log running tasks

  • Thread starter Thread starter Andrew
  • Start date Start date
A

Andrew

hi,
how can i log (in the eventlog or in a file) the activity
of my pc...
i need to monitor at regular interval the running applications
(like showed in task monitor...)on my machine,
and if's possibile the modified/added/deleted files
on file system.
it would be good that the app runs like a service ...
i'have found something about the Process.GetProcesses() but i
need only the task(applications) and not all processes...
tnx in advance for help
andrew
 
You could try:
a) going for only ones that have a window (either enumerate the top level
windows instead of the processes, or find some way of associating between
process and window - although how, I don't know)
b) excluding ones from a certain list of known 'system processes'
c) only including ones from a certain list
 
Hi,

Use the eventlog class to write to the eventlog.
http://msdn.microsoft.com/library/d.../frlrfsystemdiagnosticseventlogclasstopic.asp

Ken
------------
hi,
how can i log (in the eventlog or in a file) the activity
of my pc...
i need to monitor at regular interval the running applications
(like showed in task monitor...)on my machine,
and if's possibile the modified/added/deleted files
on file system.
it would be good that the app runs like a service ...
i'have found something about the Process.GetProcesses() but i
need only the task(applications) and not all processes...
tnx in advance for help
andrew
 

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

Back
Top