Obtains a list of all the event log names on the current system.


The single argument is:


An array object. On return the array will contain the names of the event logs on the current system. This will include any custom logs, if there are any. The array is emptied before the names are added. If an error happens, the array will be empty.

Return value:

This method returns 0 on success, and the operating system error code on failure.


This example displays the names of all the event logs on the current system.

logNames = .array~new
ret = log~getLogNames(logNames)

if ret == 0 then do name over logNames
  say "Log:" name

::requires 'winSystm.cls'

/* Output might be:

Log: Application
Log: Internet Explorer
Log: Security
Log: System