As a follow up here is the whole structure of an event log event from Microsoft.
http://msdn.microsoft.com/
Terry
Main Topics
Browse All TopicsWhat is the maximum value for the Event ID column in the Windows Event Logs?
I am currently working on creating a program which interprets the contents of the Event Logs.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
As a follow up here is the whole structure of an event log event from Microsoft.
http://msdn.microsoft.com/
Terry
I am writing this in C#.NET.
However, I don't actually believe this will have any impact in this particular instance - I do not have access to the actual logs. We have a program that dumps the event logs into comma-delimited files, which are then imported into an Access database.
My program is then reading from the Access database - so I'm taking the Event ID that's stored in there.
But, yeah, in this instance it's probably sufficient to just show an error message if the Event ID is above 65536 (and then continue on gracefully)...
Well if it's just reading from the access database then I'd base my variable for reading it from the access table type for that column.
Since your not reading directly or from .evt logs basing it on what access already has set is the way to go personally.
Once it's in access, thats whats your talking with.
Well highest down to lowest I could give you the SQL for.
One thing I've learnt is if someones wanting to ask for it once is someone will ask for it again. LOL!
If I was you I'd qualify what they are after. For your app it's easier to qualify what it's looking for.
If they are after a top ten or 100 occuring events then a top on the count of the eventID should work.
Might pay to ask in the Access forum as although I'm proficient in SQL queries and Access those people in there know their stuff alot better than I do when it comes to good and quick SQL queries.
http://www.experts-exchang
Terry
Business Accounts
Answer for Membership
by: qz8dswPosted on 2006-10-03 at 21:13:47ID: 17656871
Under the .net framework the event ID is an INT32 (values ranging from negative 2,147,483,648 to positive 2,147,483,647)
/cs/sample s/EventLog Parser.asp
Dare I say it for compatability if it might run on older systems a 16 bit integer and catering for to 65535 "should" suffice.
I've personally not see an event ID over that YET being the operative word!!!!
Here is a c# example that uses unsafe int's.
This read's saved .evt files as opposed to reading the active event log.
http://www.codeproject.com
Terry