Article View: borland.public.cppbuilder.nativeapi
Article #12945Re: ReportEvent api
From: Remy Lebeau (TeamB)
Date: Sat, 08 Nov 2003 05:31
Date: Sat, 08 Nov 2003 05:31
17 lines
1406 bytes
1406 bytes
"Mike Collins" <mikec@kr8.co.uk> wrote in message
news:3fac4142@newsgroups.borland.com...
> Does anyone have any simple, practical examples of using
> the RepostEvent api to place entries into the Windows Log File.
HANDLE hEventLog = RegisterEventSource(NULL, "MyEventSource");
//...
LPSTR lpMsg = "Some Error Message";
ReportEvent(hEventLog, EVENTLOG_ERROR_TYPE, 0, 0, NULL, 1, 0,
(LPCTSTR*)&lpMsg, NULL);
//...
DeregisterEventSource(hEventLog);
Gambit
Technical Details
Message-ID:
<3fac7ee3$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<3fac4142@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,b799f6aac84a0ff5 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-11-07 21:39:37 PST From: "Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <3fac4142@newsgroups.borland.com> Subject: Re: ReportEvent api Date: Fri, 7 Nov 2003 21:31:16 -0800 Lines: 19 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 NNTP-Posting-Host: 67.22.137.149 Message-ID: <3fac7ee3$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1068269283 67.22.137.149 (7 Nov 2003 21:28:03 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail