windows-nt/Source/XPSP1/NT/termsrv/setup/tsdiag/evntutl
2020-09-26 16:20:57 +08:00
..
dlldata.c Add source files 2020-09-26 16:20:57 +08:00
dlldatax.c Add source files 2020-09-26 16:20:57 +08:00
dlldatax.h Add source files 2020-09-26 16:20:57 +08:00
event.cpp Add source files 2020-09-26 16:20:57 +08:00
event.h Add source files 2020-09-26 16:20:57 +08:00
event.rgs Add source files 2020-09-26 16:20:57 +08:00
events.cpp Add source files 2020-09-26 16:20:57 +08:00
events.h Add source files 2020-09-26 16:20:57 +08:00
events.rgs Add source files 2020-09-26 16:20:57 +08:00
evntutl.cpp Add source files 2020-09-26 16:20:57 +08:00
evntutl.def Add source files 2020-09-26 16:20:57 +08:00
evntutl.h Add source files 2020-09-26 16:20:57 +08:00
evntutl.idl Add source files 2020-09-26 16:20:57 +08:00
evntutl.rc Add source files 2020-09-26 16:20:57 +08:00
log.cpp Add source files 2020-09-26 16:20:57 +08:00
log.h Add source files 2020-09-26 16:20:57 +08:00
log.rgs Add source files 2020-09-26 16:20:57 +08:00
logs.cpp Add source files 2020-09-26 16:20:57 +08:00
logs.h Add source files 2020-09-26 16:20:57 +08:00
logs.rgs Add source files 2020-09-26 16:20:57 +08:00
makefile Add source files 2020-09-26 16:20:57 +08:00
readme.txt Add source files 2020-09-26 16:20:57 +08:00
resource.h Add source files 2020-09-26 16:20:57 +08:00
sources Add source files 2020-09-26 16:20:57 +08:00
stdafx.cpp Add source files 2020-09-26 16:20:57 +08:00
stdafx.h Add source files 2020-09-26 16:20:57 +08:00
types.h Add source files 2020-09-26 16:20:57 +08:00
view.cpp Add source files 2020-09-26 16:20:57 +08:00
view.h Add source files 2020-09-26 16:20:57 +08:00
view.rgs Add source files 2020-09-26 16:20:57 +08:00

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