win32evtlog.ReportEvent

ReportEvent(EventLog, Type, Category, EventID, UserSid, Strings, RawData)

Reports an event

Parameters

EventLog : PyHANDLE

Handle to an event log

Type : int

win32con.EVENTLOG_* value

Category : int

Source-specific event category

EventID : int

Source-specific event identifier

UserSid : PySID

Sid of current user, can be None

Strings : sequence

Sequence of unicode strings to be inserted in message

RawData : str

Binary data for event, can be None