How To Back Up the NT Event Log in Visual Basic (216089)
The information in this article applies to:
- Microsoft Visual Basic Standard Edition, 32-bit, for Windows 4.0
- Microsoft Visual Basic Professional Edition, 32-bit, for Windows 4.0
- Microsoft Visual Basic Enterprise Edition, 32-bit, for Windows 4.0
- Microsoft Visual Basic Learning Edition for Windows 5.0
- Microsoft Visual Basic Learning Edition for Windows 6.0
- Microsoft Visual Basic Professional Edition for Windows 5.0
- Microsoft Visual Basic Professional Edition for Windows 6.0
- Microsoft Visual Basic Enterprise Edition for Windows 5.0
- Microsoft Visual Basic Enterprise Edition for Windows 6.0
This article was previously published under Q216089 SUMMARY
Event logging in Windows provides a standard, centralized way for Windows
and applications to record important software and hardware events. It also supplies a standard user interface for viewing the logs and a programming interface for examining the logs.
This article illustrates how to back up the NT Event Log with Visual Basic
versions 4.0 and later. This can be done using the BackupEventLog API call. While Visual Basic versions 5.0 and later have built-in functionality for event-logging, they do not provide the backup functionality that the Win32 API does.
REFERENCESFor additional information about event logging from Visual Basic, click the article numbers below
to view the articles in the Microsoft Knowledge Base:
154576 How To Write to the NT Event Log from Visual Basic
161306 INFO: App.LogEvent Only Logs in Compiled Applications
184747 INFO: Event Logging in Visual Basic
216097 How To Clear the NT Event Log in Visual Basic
216146 How To Get the Number of NT Event Log Records in Visual Basic
Modification Type: | Minor | Last Reviewed: | 6/29/2004 |
---|
Keywords: | kbAPI kbEventLog kbhowto KB216089 |
---|
|