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.
 
Back
Top