Page 1 of 1

Adding Events to the EventLog in Windows

Posted: Thu Nov 11, 2021 10:44 pm
by byron.hopp
Is it possible to log events in the EventLog of Windows using FiveWin?

Thanks,

Byron ...

Re: Adding Events to the EventLog in Windows

Posted: Sun Nov 14, 2021 1:19 am
by Jimmy
hi,

there is a Sample under \HARBOUR\contrib\hbwin\tests\eventlog.prg in HMG using win_ReportEvent() from HbWin

Code: Select all | Expand

#require "hbwin"
PROCEDURE Main()
   ? win_ReportEvent( NIL, "Application", WIN_EVENTLOG_SUCCESS, 0, 0, "hello" )
   ? win_ReportEvent( NIL, "Application", WIN_EVENTLOG_SUCCESS, 0, 0, { "hello", "world" } )
RETURN
 

i have not found any other Sample using win_ReportEvent()