Adding Events to the EventLog in Windows

Post Reply
byron.hopp
Posts: 388
Joined: Sun Nov 06, 2005 3:55 pm
Location: Southern California, USA
Contact:

Adding Events to the EventLog in Windows

Post by byron.hopp »

Is it possible to log events in the EventLog of Windows using FiveWin?

Thanks,

Byron ...
Thanks,
Byron Hopp
Matrix Computer Services
User avatar
Jimmy
Posts: 1740
Joined: Thu Sep 05, 2019 5:32 am
Location: Hamburg, Germany
Has thanked: 2 times

Re: Adding Events to the EventLog in Windows

Post 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()
greeting,
Jimmy
Post Reply