VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Read The Event Log

by Darryl Ackerman (1 Submission)
Category: Windows API Call/Explanation
Compatability: Visual Basic 3.0
Difficulty: Advanced
Date Added: Wed 3rd February 2021
Rating: (6 Votes)

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.

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
Assumes
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.
Code Returns
Returns all records in the selected log

Rate Read The Event Log

Download Read The Event Log

Download Read The Event Log (6 KB)

Read The Event Log Comments

No comments have been posted about Read The Event Log. Why not be the first to post a comment about Read The Event Log.

Post your comment

Subject:
Message:
0/1000 characters