PC Review


Reply
Thread Tools Rate Thread

capturing windows events

 
 
Rick
Guest
Posts: n/a
 
      11th Jan 2005
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



 
Reply With Quote
 
 
 
 
Nicholas Paldino [.NET/C# MVP]
Guest
Posts: n/a
 
      11th Jan 2005
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.


--
- Nicholas Paldino [.NET/C# MVP]
- (E-Mail Removed)

"Rick" <(E-Mail Removed)> wrote in message
news:%23fVfjrB%(E-Mail Removed)...
> 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
>
>
>



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Capturing First Few Ke Down Events fripper Microsoft Dot NET 0 22nd Oct 2008 02:18 AM
Capturing NT Events on Windows 2000 Pramod Microsoft Windows 2000 Developer 0 27th Jul 2008 08:40 AM
Capturing events not in windows forms =?Utf-8?B?QXBwaWFuIEJyZW5kYW4=?= Microsoft C# .NET 0 3rd Sep 2004 10:19 PM
Capturing windows events (hooks).. Mohit Sachdeva Microsoft C# .NET 1 27th Nov 2003 07:41 PM
Capturing windows events (hooks).. Mohit Sachdeva Microsoft Dot NET Framework 1 27th Nov 2003 07:41 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:13 AM.