• XbOpenBackupEventLog([cUNCServerName], cFileName)


    • Description
      this function opens a handle of an event log.
    • Parameter(s)

      cUNCServerName (optional)
      Points to a string that specifies the Universal Naming Convention (UNC) name of the server on
      which the event log is to be opened. If this parameter is NIL, the log is opened on the local computer.

      cFileName
      points to a string that specifies the name of the backup file.
      The backup filename may contain a server name to open a backup file on a remote server
      (in this case, the cUNCServerName parameter must be NIL)

    • Return Value
      if the function succeeds, the return value is TRUE, otherwise FALSE
      To get extended error information, call XbEventGetLastError.
  • Sample
    #include "xbevent.ch"

    local nEvtHandle    := 0
    local cError        := space(100)

    //
    // open a saved Eventlog-File
    //
    if ((nEvtHandle := XbOpenBackupEventLog(, "SaveLog.Evt")) <= 0)
      XbEventGetLastError(@cError)
      ? "Error :", cError
    endif