NT Event Viewer Loggin with API Calls
Version Compatibility: Visual Basic 6
I've written this because VB's LogEvent method is really no good. It works only part of the time and under the Source header in the Event Viewer it writes VBRuntime. So if you have 5 apps writing to the Event Viewer, all 5 have VBRuntime at the source. Not very helpful. This way you can easily see what apps have errors.
Instructions: Copy the declarations and code below and paste directly into your VB project.