win32evtlog.EvtFormatMessage

str,list = EvtFormatMessage(Metadata, Event , Flags , ResourceId )

Formats a message string.

Parameters

Metadata : PyEVT_HANDLE

Handle to provider metadata returned by win32evtlog::EvtOpenPublisherMetadata

Event : PyEVT_HANDLE

Handle to an event

Flags : int

Type of message to format. EvtFormatMessageEvent or EvtFormatMessageLevel or EvtFormatMessageTask or EvtFormatMessageOpcode or EvtFormatMessageKeyword or EvtFormatMessageChannel or EvtFormatMessageProvider or EvtFormatMessageId or EvtFormatMessageXml. If set to EvtFormatMessageId, callers should also set the 'ResourceId' parameter

ResourceId=0 : int

The resource identifier of a message string returned by win32evtlog::EvtGetPublisherMetadataProperty. Only set this if flags = EvtFormatMessageId.

Comments

Accepts keyword args

Return Value

Returns a formatted message string, or a list of strings if Flags=EvtFormatMessageKeyword