Contents
|
Python for Win32 Extensions Help
>
Win32 API
>
Modules
>
win32evtlog
>
OpenEventLog
win32evtlog
.OpenEventLog
PyEVTLOG_HANDLE
=
OpenEventLog(
serverName
, sourceName
)
Opens an event log.
Parameters
serverName
:
PyUnicode
The server name, or None
sourceName
:
PyUnicode
specifies the name of the source that the returned handle will reference. The source name must be a subkey of a logfile entry under the EventLog key in the registry.