Cant detect Event Log Entry after clearing

Joined
Jan 23, 2009
Messages
3
Reaction score
0
Hi,

I currently have an application that monitors the windows events logs. The problem is that if a user clears the event logs on Windows 2003/XP, the eventlog object doesn't detect the 1st new entry that windows automatically adds to say that the event log has been cleared.

Events are raised for all subsequent entries, but this "important" one to inform us that the log's been cleared is missing.

If I go through the "Entries" collection, the 1st entry seems to be the original 1st entry, not the new 1st entry.

It does, however, seem to work fine on Vista.

Is there any way I can detect the clearing of the event log and reread it before an event is raised for another entry being added?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,233
Members
46,820
Latest member
GilbertoA5

Latest Threads

Top