FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Adding Events to the EventLog in Windows
Posts: 408
Joined: Sun Nov 06, 2005 03:55 PM
Adding Events to the EventLog in Windows
Posted: 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
Posts: 1772
Joined: Thu Sep 05, 2019 05:32 AM
Re: Adding Events to the EventLog in Windows
Posted: Sun Nov 14, 2021 01:19 AM
hi,

there is a Sample under \HARBOUR\contrib\hbwin\tests\eventlog.prg in HMG using win_ReportEvent() from HbWin
Code (fw): Select all Collapse
#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

Continue the discussion