mirror of https://github.com/tongzx/nt5src
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
CryptoAlgo Inc
daad8a087a
|
4 years ago | |
---|---|---|
.. | ||
dlldata.c | 4 years ago | |
dlldatax.c | 4 years ago | |
dlldatax.h | 4 years ago | |
event.cpp | 4 years ago | |
event.h | 4 years ago | |
event.rgs | 4 years ago | |
events.cpp | 4 years ago | |
events.h | 4 years ago | |
events.rgs | 4 years ago | |
evntutl.cpp | 4 years ago | |
evntutl.def | 4 years ago | |
evntutl.h | 4 years ago | |
evntutl.idl | 4 years ago | |
evntutl.rc | 4 years ago | |
log.cpp | 4 years ago | |
log.h | 4 years ago | |
log.rgs | 4 years ago | |
logs.cpp | 4 years ago | |
logs.h | 4 years ago | |
logs.rgs | 4 years ago | |
makefile | 4 years ago | |
readme.txt | 4 years ago | |
resource.h | 4 years ago | |
sources | 4 years ago | |
stdafx.cpp | 4 years ago | |
stdafx.h | 4 years ago | |
types.h | 4 years ago | |
view.cpp | 4 years ago | |
view.h | 4 years ago | |
view.rgs | 4 years ago |
readme.txt
The EventLogUtilities objects are structured much like the EventLog viewer.
The main object is View, it can be used to access the various event logs on a system (View.Logs) and to change which server the event logs will be obtained from.
The Logs object can be used to enumerate through the primary logs: Application, Security, and System. To access other logs, use Logs.Item("NameOfLog").
The Log object provides access to the Events object which holds the collection of events for a particular log.
An Event object is the bottom level object and contains the properties which make up an event. Note: event time is given as local system time.
Example Use from VBScript:
Set oView = CreateObject("EventLogUtilities.View")
for each oLog in oView.Logs
for each oEvent in oLog.Events
wscript.echo oEvent.Description
next
next