Open
Open([NbOldEvent As Integer ,[sSource As String,[sServer As String, [nLastIndex As Integer]]]]) As Bool
Open the eventlog with the source <sSource> on the computer with name <sServer>. If sServer is not defined the eventlog is opened on the local machine. If sSource is not defined, the "application" source is used.
NbOldEvent is the number of old event messages that the object should keep. You can read these events with the function Read (and the option nFlag = 1). The higher value of NbOldEvent is 5000.
If NbOldEvent is null, the events are read from the position nLastIndex, if this value is positive. By default nLastIndex = -1, this value being used to set the position at the end of the eventlog. The index of the last event read is returned in nLastIndex to be used in the next opening.
The read events are then sequentially read by using the function GetEvent.