Tools Links Login

Read The Event Log

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

Inputs

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

Assumptions

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

Returns all records in the selected log

About this post

Posted: 2002-06-01
By: ArchiveBot
Viewed: 87 times

Categories

Visual Basic 6

Attachments

Read The E186374212001.zip
Posted: 9/3/2020 3:45:00 PM
Size: 6,250 bytes


Loading Comments ...

Comments

No comments have been added for this post.

You must be logged in to make a comment.