🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #16314

Re: Serial port COM10 and higher

#16314
From: In�s Fern�ndez
Date: Wed, 21 May 2003 08:41
21 lines
1746 bytes
> I'm sure on my last project, we just used "COM10", no :s or \s in the
> name (we used upto port 13)
>
> Russell
>

Are you sure?
Using just COM10 and higher with no "\" or ":", CreateFile returned an
invalid handle here.
My code was:

 hMyHandle = CreateFile("COM10",
                                        GENERIC_READ | GENERIC_WRITE,
                                        FILE_SHARE_READ | FILE_SHARE_WRITE,
                                        NULL,
                                        OPEN_EXISTING,
                                        FILE_FLAG_OVERLAPPED,
                                        NULL);


In�s
Technical Details
Message-ID: <3ecb3bbe@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!small1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <3eca4789$1@newsgroups.borland.com> <3ecb11f9$1@newsgroups.borland.com> <3ecb20c0@newsgroups.borland.com> <3ecb24da@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 10cc67,2ad1ab2fdcf6283f
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-05-21 02:08:04 PST
From: "In�s Fern�ndez" <ifernandezmed@terra.es>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3eca4789$1@newsgroups.borland.com> <3ecb11f9$1@newsgroups.borland.com> <3ecb20c0@newsgroups.borland.com> <3ecb24da@newsgroups.borland.com>
Subject: Re: Serial port COM10 and higher
Date: Wed, 21 May 2003 10:41:34 +0200
Lines: 23
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2720.3000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
NNTP-Posting-Host: 80.59.94.142
Message-ID: <3ecb3bbe@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1053506494 80.59.94.142 (21 May 2003 01:41:34 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!small1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail