capturing windows events

  • Thread starter Thread starter Rick
  • Start date Start date
R

Rick

Assuming proper authentication, does the framework offer a way to capture
Windows Server 2003 system security events, as found in the event viewer log
files?

I'd like to be able to write some code to trap certain events and react to
them.

Thanks,
Rick
 
Rick,

You can create an instance of the EventLog class, and attach it to the
appropriate event log. Then, you would sign up for the EntryWritten event
on the EventLog instance, which is fired when a new entry is written to the
event log on the local computer.

Hope this helps.
 

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