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.