473,473 Members | 1,882 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

List of EventIDs from the Event Log

UJ
Does anybody know of where I can find a complete list of the events that
Windows writes to the EventLog ?

TIA - Jeff.
Sep 20 '06 #1
3 1843
Jeff,

You can get the EventLog instance for the event log that you are trying
to cycle through. Then, check the Events property. It returns a
EventLogEntryCollection class instance which you can iterate through and get
the EventLogEntry instances (representing entries in the log). From that,
you can use the InstanceId property to get the id of the event.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"UJ" <fr**@nowhere.comwrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
Does anybody know of where I can find a complete list of the events that
Windows writes to the EventLog ?

TIA - Jeff.


Sep 20 '06 #2
UJ
No. What I mean is I've got the events I know I'm going to be searching for,
I just at the moment don't know what the event ID is for that event.

For instance - I want to know when a machine shutdown. That would be eventID
........ ????? What I need is the list of event IDs that can be
written to the eventlog so that I can figure out what event ID I need to
look for.

TIA - Jeff.

"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.comwrote in
message news:%2****************@TK2MSFTNGP04.phx.gbl...
Jeff,

You can get the EventLog instance for the event log that you are trying
to cycle through. Then, check the Events property. It returns a
EventLogEntryCollection class instance which you can iterate through and
get the EventLogEntry instances (representing entries in the log). From
that, you can use the InstanceId property to get the id of the event.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"UJ" <fr**@nowhere.comwrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
>Does anybody know of where I can find a complete list of the events that
Windows writes to the EventLog ?

TIA - Jeff.



Sep 20 '06 #3
Jeff,

Ahh, I don't know of a list offhand. I would just look for the event in
the event log and then copy down the event log name, the source, and the
event id.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"UJ" <fr**@nowhere.comwrote in message
news:Of**************@TK2MSFTNGP02.phx.gbl...
No. What I mean is I've got the events I know I'm going to be searching
for, I just at the moment don't know what the event ID is for that event.

For instance - I want to know when a machine shutdown. That would be
eventID ....... ????? What I need is the list of event IDs that
can be written to the eventlog so that I can figure out what event ID I
need to look for.

TIA - Jeff.

"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.comwrote
in message news:%2****************@TK2MSFTNGP04.phx.gbl...
>Jeff,

You can get the EventLog instance for the event log that you are
trying to cycle through. Then, check the Events property. It returns a
EventLogEntryCollection class instance which you can iterate through and
get the EventLogEntry instances (representing entries in the log). From
that, you can use the InstanceId property to get the id of the event.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"UJ" <fr**@nowhere.comwrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
>>Does anybody know of where I can find a complete list of the events that
Windows writes to the EventLog ?

TIA - Jeff.




Sep 20 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Dave Hopper | last post by:
Hi I posted a question recently regarding problems I am having getting a value from a list box to use in a query. I got a lot of help, for which I thank you and it's nearly working! But I need...
3
by: moondaddy | last post by:
I wrote my own List class which I use to bind to list controls. this class inherits CollectionBase and implements IBindingList. This class contains a list of business classes such as customers...
1
by: Peter Rilling | last post by:
How can I get access to the invocation list for a multicast delegate (i.e. an event) at runtime? Suppose that I have a reference to a class that has an event. I would like to be able to...
5
by: kpp9c | last post by:
I have a several list of songs that i pick from, lets, say that there are 10 songs in each list and there are 2 lists. For a time i pick from my songs, but i only play a few of the songs in that...
11
by: eureka | last post by:
Hi All, I'm training in Servlets, JSP and JavaScript, I have a web page in which there's a "StudentName" textbox and below it is a "Names" Dropdown list. Initially the Textbox is empty and...
4
Rabbit
by: Rabbit | last post by:
Cascading Combo/List Boxes This tutorial is to guide you in the creation of Cascading combo/list boxes. That is when you have multiple combo/list boxes where the selection of an option in one...
2
by: marcotrapanese | last post by:
Hello! I wrote a class "Layers" with one event "DataChanged": Public Class Layers Private _Value as Object Public Property Value() As Object Get
0
by: saijin | last post by:
I'm planning to call a list of data from an XML file but when I duplicate the content inside the <data></data> it is not showing anything Here's the ActionScript 3.0 import...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.