• XbCloseEventLog(nEvtHandle)


    • Description
      this function closes the specified event log.
    • Parameter(s)

      hEventLog
      Identifies the event log to be closed.
      This handle is returned by the XbOpenEventLog function

    • Return Value
      if the function succeeds, the return value is TRUE, otherwise FALSE
  • Sample
    #include "xbevent.ch"

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

    //
    // open a Eventlog-Key and directly close key again
    //
    if ((nEvtHandle := XbOpenEventLog(, "WinApp")) <= 0)
      XbEventGetLastError(@cError)
      ? "Error :", cError
    else
      XbCloseEventLog(nEvtHandle)
    endif