Platforms to show: All Mac Windows Linux Cross-Platform

Back to WindowsReportErrorMBS class.

WindowsReportErrorMBS.Constructor(SourceName as String, UNCServerName as String = "")

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Windows MBS Win Plugin 21.0 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Retrieves a registered handle to the specified event log.

UNCServerName: The Universal Naming Convention (UNC) name of the remote server on which this operation is to be performed. If this parameter is "", the local computer is used.
SourceName: The name of the event source whose handle is to be retrieved. The source name must be a subkey of a log under the Eventlog registry key. Note that the Security log is for system use only.
Note This string must not contain characters prohibited in XML Attributes, with the exception of XML Escape sequences such as &lt &gl.

If the source name cannot be found, the event logging service uses the Application log. Although events will be reported , the events will not include descriptions because there are no message and category message files for looking up descriptions related to the event identifiers.

Raises exception on failure.

WindowsReportErrorMBS.Report(Type as Integer, Category as Integer, EventID as Integer, Strings() as string = nil, RawData as MemoryBlock = nil)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Windows MBS Win Plugin 21.0 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Writes an entry at the end of the event log.

Type: The type of event to be logged. See kEventLog* constants.
Category: The event category. This is source-specific information; the category can have any value.
EventID: The event identifier. The event identifier specifies the entry in the message file associated with the event source.
Strings: An array of strings that are merged into the message before Event Viewer displays the string to the user. This parameter must can be nil for no strings. Each string is limited to 31,839 characters.
RawData:

The items on this page are in the following plugins: MBS Win Plugin.


The biggest plugin in space...