nEvtHandle
Identifies the event log whose handle was returned by XbRegEventSource.
- Sample
#include "xbevent.ch"
local nEvtHandle := 0
local cError := space(100)
//
// open a Eventlog-Key
//
if ((nEvtHandle := XbRegEventLog(, "WinApp")) <= 0)
XbEventGetLastError(@cError)
? "Error :", cError
else
XbReportEvent(nEvtHandle, nType, nEvtID, cEvtString)
XbDeRegEventLog(nEvtHandle)
endif