I have a question regarding the Event ID in the Event Log. I wrote a program that will read through events and update a database with event log information. It appears that .NET only allows you to grab the InstanceID and that you must convert it to the Event ID that you see in the log.
Is there a 100%, guaranteed-to-work, method of getting the Event ID?
The following link has a discussion on this. The second post in the link gives a VB routine that does the conversion. I tried this and it works most of the time but I have a few events which are not converting properly. The posts below indicate that this could be a problem but there doesn't seem to be complete agreement.
Does anyone have a better way of getting the EventID? One that should always work?