Note:
The Event Logging API was designed for applications that run on the Windows Server 2003, Windows XP, or Windows 2000 operating system. In Windows Vista, the event logging infrastructure was redesigned. Applications that are designed to run on the Windows Vista or later operating systems should now use Windows Event Log.
The following functions are used with event logging.
| Function | Description |
|---|---|
| BackupEventLog | Saves the specified event log to a backup file. |
| ClearEventLog | Clears the specified event log, and optionally saves the current copy of the log to a backup file. |
| CloseEventLog | Closes a read handle to the specified event log. |
| DeregisterEventSource | Closes a write handle to the specified event log. |
| GetEventLogInformation | Retrieves information about the specified event log. |
| GetNumberOfEventLogRecords | Retrieves the number of records in the specified event log. |
| GetOldestEventLogRecord | Retrieves the absolute record number of the oldest record in the specified event log. |
| NotifyChangeEventLog | Enables an application to receive notification when an event is written to the specified event log. |
| OpenBackupEventLog | Opens a handle to a backup event log. |
| OpenEventLog | Opens a handle to the specified event log. |
| ReadEventLog | Reads a whole number of entries from the specified event log. |
| RegisterEventSource | Retrieves a registered handle to the specified event log. |
| ReportEvent | Writes an entry at the end of the specified event log. |
Source: Microsoft Learn / Windows Win32 documentation by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.
