Article View: borland.public.cppbuilder.nativeapi
Article #4831Re: GetOverlappedResult on virtual serial COM port
From: Michel Leunen
Date: Sun, 27 Nov 2005 21:16
Date: Sun, 27 Nov 2005 21:16
22 lines
1774 bytes
1774 bytes
Thom A. wrote:
> while(!GetOverlappedResult(FHandle,&WRITE_OS, &dwBytesWritten,
> TRUE ))
> {
> dwError = GetLastError();
> if(dwError == ERROR_IO_INCOMPLETE)
> {
If I'm not mistaken, specifying TRUE as the last parameter of
GetOverlappedResult() means the function is waiting for the operation to
be completed. In this case, there is no need to test the result against
ERROR_IO_INCOMPLETE as this can't happen.
Michel
--
----------------------------------------
Michel Leunen
mailto: see my homepage.
C++Builder, BCC5.5.1 Web site:
http://www.leunen.com/
----------------------------------------
Technical Details
Message-ID:
<438a2209$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!news-out.newsfeeds.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<438a0398$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,14a3bc55bdb22e73 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Sun, 27 Nov 2005 22:16:29 +0100 From: Michel Leunen <nospam@noreply.please> Organization: www.leunen.com User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) X-Accept-Language: fr-be, en-us, en MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: GetOverlappedResult on virtual serial COM port References: <438a0398$1@newsgroups.borland.com> In-Reply-To: <438a0398$1@newsgroups.borland.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 81.247.69.26 Message-ID: <438a2209$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1133126153 81.247.69.26 (27 Nov 2005 13:15:53 -0700) Lines: 22 Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!news-out.newsfeeds.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail