Adding Events to the EventLog in Windows

Adding Events to the EventLog in Windows

Postby byron.hopp » Thu Nov 11, 2021 10:44 pm

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

Thanks,

Byron ...
Thanks,
Byron Hopp
Matrix Computer Services
byron.hopp
 
Posts: 372
Joined: Sun Nov 06, 2005 3:55 pm
Location: Southern California, USA

Re: Adding Events to the EventLog in Windows

Postby Jimmy » Sun Nov 14, 2021 1:19 am

hi,

there is a Sample under \HARBOUR\contrib\hbwin\tests\eventlog.prg in HMG using win_ReportEvent() from HbWin
Code: Select all  Expand view
#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
User avatar
Jimmy
 
Posts: 1686
Joined: Thu Sep 05, 2019 5:32 am
Location: Hamburg, Germany


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 84 guests