Top Method Summary
Options Name Purpose
LOGICAL CreateEventSource (character) Creates an Event Source
LOGICAL CreateEventSourceAsAdministrator (character) Starts a new AVM with the "Run As Administrator" flag to create an Event Source
LOGICAL EventSourceExists (character) Verifies if an EventSource exists
LOGICAL WriteMessage (character, character) Writes a Message to the EventLog
LOGICAL WriteMessage (character, character, EventLogEntryType) Writes a Message to the EventLog

Top Constructor Summary
Options Name Purpose
EventLogHelper () Constructor for the EventLogHelper class


Method Detail
Top

LOGICAL CreateEventSource (character)

Purpose: Creates an Event Source
Notes:

Parameters:
pcEventSource CHARACTER
The name of the Event Source to create
Returns LOGICAL
Logical value indicating if the EventSource has been created
Top

LOGICAL CreateEventSourceAsAdministrator (character)

Purpose: Starts a new AVM with the "Run As Administrator" flag to create an
Event Source
Notes:

Parameters:
pcEventSource CHARACTER
The name of the Event Source to create
Returns LOGICAL
Logical value indicating if the EventSource has been created
Top

LOGICAL EventSourceExists (character)

Purpose: Verifies if an EventSource exists
Notes:

Parameters:
pcEventSource CHARACTER
The name of the Event Source
Returns LOGICAL
Logical value indicating if the EventSource exists
Top

LOGICAL WriteMessage (character, character)

Purpose: Writes a Message to the EventLog
Notes: Prevents from writing to Event Sources that are known to be not
available in the session

Parameters:
pcMessage CHARACTER
The message to be written to the EventLog
pcEventSource CHARACTER
The event source to be used for the message, will be created if required
Returns LOGICAL
Logical value indicating if the message has been written to the EventLog
Top

LOGICAL WriteMessage (character, character, EventLogEntryType)

Purpose: Writes a Message to the EventLog
Notes: Prevents from writing to Event Sources that are known to be not
available in the session

Parameters:
pcMessage CHARACTER
The message to be written to the EventLog
pcEventSource CHARACTER
The event source to be used for the message, will be created if required
poEntryType System.Diagnostics.EventLogEntryType
The System.Diagnostics.EventLogEntryType for the message
Returns LOGICAL
Logical value indicating if the message has been written to the EventLog


Constructor Detail
Top

EventLogHelper ()

Purpose: Constructor for the EventLogHelper class
Notes: Disallow instance creation



©2006-2026 Consultingwerk Ltd.         info@consultingwerk.de         http://www.consultingwerk.de       30.03.2026 11:13:11