You'll need to read in a loop until no records are returned.
Roger
"Austin" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> My codes are below:
>
> ***
> import win32evtlog
>
> def check_records(records):
>for i in range(0,len(records)):
My codes are below:
***
import win32evtlog
def check_records(records):
for i in range(0,len(records)):
print records[i].SourceName
h = win32evtlog.OpenEventLog(None,"System")
flags =
win32evtlog.EVENTLOG_BACKWARD_READ|win32evtlog.EVENTLOG_SEQUENTIAL_R