πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: How to get teh Com Port List

#15579
From: Vladimir Afanasyev
Date: Fri, 27 Jun 2003 06:57
15 lines
1497 bytes
"HernοΏ½n Tornielli" <hernan@nospam.net> wrote:

>
>As far as I know, you will need to try to open a com port to know if it is a
>available at
>a given time, if so, then close the port unless you are going to use it.
>You may use CreateFile() and CloseHandle() on each port you want to test.
>
>

It may not always work exactly - another application 
can open port and your application will impossible do the same.
And I read that numbers of ports is unlimited.
Vladimir.
Technical Details
Message-ID: <3efbeac6$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-01!sn-xit-09!supernews.com!newshosting.com!news-xfer1.atl.newshosting.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail
References: <3efb48e2@newsgroups.borland.com> <3efb4f70@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 10cc67,46ef27c63a89161b
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-06-27 00:02:07 PST
From: "Vladimir Afanasyev" <avv@systema.kiev.ua>
Sender: "Vladimir Afanasyev" <avv@systema.kiev.ua>
Reply-To: "Vladimir Afanasyev" <avv@systema.kiev.ua>
Subject: Re: How to get teh Com Port List
Newsgroups: borland.public.cppbuilder.nativeapi
X-User-Info: 62.244.14.114 62.244.14.114    
X-Forwarded-For: 192.168.0.147
References: <3efb48e2@newsgroups.borland.com> <3efb4f70@newsgroups.borland.com>
NNTP-Posting-Host: 207.105.83.65
Message-ID: <3efbeac6$1@newsgroups.borland.com>
Date: 26 Jun 2003 23:57:10 -0700
X-Trace: newsgroups.borland.com 1056697030 207.105.83.65 (26 Jun 2003 23:57:10 -0700)
Lines: 15
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-01!sn-xit-09!supernews.com!newshosting.com!news-xfer1.atl.newshosting.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail