Article View: borland.public.cppbuilder.nativeapi
Article #438Re: Using ReadEventLog()
From: St�phane Lambert
Date: Tue, 15 Apr 2008 06:48
Date: Tue, 15 Apr 2008 06:48
21 lines
1323 bytes
1323 bytes
Hi Bob,
Thanks for your reply.
You are right. There is 112 bytes of difference between "sizeof(
CurrentEventLogRecord )" and "dwBytesNeeded".
Using the line:
sizeof( CurrentEventLogRecord ) + 112;
or better:
EVENTLOGRECORD * pCurrentEventLogRecord = new EVENTLOGRECORD[
dwBytesNeeded ];
correct the problem.
Thanks again,
Stephane
Technical Details
Message-ID:
<48044180$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!feeder.news-service.com!feeder2.cambrium.nl!feed.tweaknews.nl!193.201.147.85.MISMATCH!feed.xsnews.nl!border-2.ams.xsnews.nl!news.isoc.lu!newsgroups.borland.com!not-for-mailReferences:
<4802a44b@newsgroups.borland.com> <28g504du27t37u8ahncq2msjv410qrtk3l@4ax.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,4de00153f8983ebf X-Google-Attributes: gid10cc67,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: "St�phane Lambert" <slamb66@hotmail.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <4802a44b@newsgroups.borland.com> <28g504du27t37u8ahncq2msjv410qrtk3l@4ax.com> Subject: Re: Using ReadEventLog() Date: Tue, 15 Apr 2008 01:48:06 -0500 Lines: 23 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1478 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1478 NNTP-Posting-Host: 65.93.5.123 Message-ID: <48044180$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1208238464 65.93.5.123 (14 Apr 2008 22:47:44 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!feeder.news-service.com!feeder2.cambrium.nl!feed.tweaknews.nl!193.201.147.85.MISMATCH!feed.xsnews.nl!border-2.ams.xsnews.nl!news.isoc.lu!newsgroups.borland.com!not-for-mail