Search Tools Links Login

Read The Event Log

Posted: 2002-06-01
By: ArchiveBot
Viewed: 72

Filed Under:

Visual Basic 6

Title Uploaded Size
Read The 9/3/2020 3:45:00 PM 6,250

This code is incomplete but demonstates the proper way to use the Event Log API's, mainly ReadEventLog(). I found no help anywhere on the Net so when I figured it out I thought others may find it useful as well.

Original Author: Darryl Ackerman


By default it reads the local Event Log however you only need to chnge the strComputer variable to have it read other NT machines on your network


You must have windows NT/2000 to use this code. It will not work on Windows 9x/me.
This code will work with vb4/5/6 however the controls are from vb6sp5. You may need to create a new project file and replace the ListView control as previous versions of vb may night recognize the control since it is from vb6sp5.


Returns all records in the selected log

Comments on this post

No comments have been added for this post.

You must be logged in to make a comment.