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=-1.9 required=5.0 tests=BAYES_00 autolearn=ham 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!news1.google.com!proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!news-fra1.dfn.de!newsfeed.pionier.net.pl!news.man.lodz.pl!not-for-mail From: "Slawo - MIR" Newsgroups: comp.lang.ada Subject: Re: Port LPT + ADA Date: Sat, 4 Dec 2004 00:51:44 +0100 Organization: LODMAN - Metropolitan Area Network in LODZ, Poland Message-ID: References: <41b0f053$0$30702$ba620e4c@news.skynet.be> NNTP-Posting-Host: r1ds.p.lodz.pl X-Trace: kujawiak.man.lodz.pl 1102117905 21850 212.51.207.146 (3 Dec 2004 23:51:45 GMT) X-Complaints-To: abuse@man.lodz.pl NNTP-Posting-Date: Fri, 3 Dec 2004 23:51:45 +0000 (UTC) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-Priority: 3 X-MSMail-Priority: Normal Xref: g2news1.google.com comp.lang.ada:6748 Date: 2004-12-04T00:51:44+01:00 List-Id: Thank you, probably only you really understood what I meant ;-) I check it tomorrow. > at a higher level you might try opening a file named "LPT1"... > > using the CreateFile function passing "LPT1" as the file name, > OPEN_EXISTING as dwCreationDisposition, and... well let's quote the MSDN: > > Communications Resources > The CreateFile function can create a handle to a communications > resource, such as the serial port COM1. For communications resources, > the dwCreationDisposition parameter must be OPEN_EXISTING, and the > hTemplate parameter must be NULL. Read, write, or read/write access can > be specified, and the handle can be opened for overlapped I/O. For more > information about communications, see Communications.