From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,d0077c2a3f44fc09 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!news.glorb.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed.cwix.com!ossa.telenet-ops.be!skynet.be!newspost001!tjb!not-for-mail Date: Mon, 13 Dec 2004 00:03:16 +0100 From: Adrien Plisson Reply-To: aplisson-news@stochastique.net User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 (ax) X-Accept-Language: fr-be, fr, en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Port LPT + ADA (whta do I wrong?) References: <1gr5159dmj2vk.5tkxiw6kxrmv.dlg@40tude.net> <1olbt9ia2fuuo$.qbyglb1cl3g8.dlg@40tude.net> In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <41bccdb9$0$31688$ba620e4c@news.skynet.be> Organization: -= Belgacom Usenet Service =- NNTP-Posting-Host: a99cf352.news.skynet.be X-Trace: 1102892473 news.skynet.be 31688 217.136.194.46:10009 X-Complaints-To: usenet-abuse@skynet.be Xref: g2news1.google.com comp.lang.ada:6912 Date: 2004-12-13T00:03:16+01:00 List-Id: Brian May wrote: > Some quotes at http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/synchronization_and_overlapped_input_and_output.asp: > > "[...] Functions called for overlapped operation can return > immediately, even though the operation has not been completed. [...] > For example, a single thread can perform simultaneous I/O operations > on different handles, or even simultaneous read and write operations > on the same handle." > > "To synchronize its execution with the completion of the overlapped > operation, the calling thread uses the GetOverlappedResult function or > one of the wait functions to determine when the overlapped operation > has been completed. You can also use the HasOverlappedIoCompleted > macro to poll for completion." > > It doesn't say anything about an ERROR_IO_PENDING or that you should > make the same IO call again. three pargraphs down: "When a function is called to perform an overlapped operation, it is possible that the operation will be completed before the function returns. When this happens, the results are handled as if the operation had been performed synchronously. If the operation was not completed, however, the function's return value is FALSE, and the GetLastError function returns ERROR_IO_PENDING." -- rien