EventLogTypeConstants
The Windows Event Log entry-type values. Corresponds to the Win32 EVENTLOG_* type constants passed to ReportEventW.
| Constant | Value | Description |
|---|---|---|
| vbEventLogTypeSuccess | 0 | An information entry. Maps to the Win32 EVENTLOG_SUCCESS constant. This is the type written by EventLog.LogSuccess. |
| vbEventLogTypeError | &H1 | An error entry. Maps to the Win32 EVENTLOG_ERROR_TYPE constant. This is the type written by EventLog.LogFailure. |
| vbEventLogTypeWarning | &H2 | A warning entry. Maps to the Win32 EVENTLOG_WARNING_TYPE constant. |
| vbEventLogTypeAuditSuccess | &H8 | A success-audit entry. Maps to the Win32 EVENTLOG_AUDIT_SUCCESS constant. Typically used in the Security log; not applicable to the Application log. |
| vbEventLogTypeAuditFailure | &H10 | A failure-audit entry. Maps to the Win32 EVENTLOG_AUDIT_FAILURE constant. Typically used in the Security log; not applicable to the Application log. |
Note
The current EventLog public API exposes only LogSuccess (type vbEventLogTypeSuccess) and LogFailure (type vbEventLogTypeError). The Warning, AuditSuccess, and AuditFailure constants are not yet reachable through the generic class.
See Also
- EventLog – the generic event-log source class
- EventLogHelperPublic – the low-level registry helper