🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Comm Port API??

#16524
From: Vladimir Afanasyev
Date: Mon, 12 May 2003 14:22
27 lines
2064 bytes
Hi Andrew,

"Andrew" <alamb@tynetec.co.uk> wrote:
>Hi everybody
>
>I'm trying to get a list of all the serial ports that are on a machine ie
>COM1, COM2 etc. I found an API function called GetSerialPortsList, this
>returns a char pointer with all available comm ports in it, However I get
>Unresolved external symbol error. Does anyone know how to get this running
>or do they know another method for finding the available commports on a
>system?

I don't know such Win API function.
Windows uses Configuration Manager's functions for enumeration 
devices. Configuration Manager is a part of DDK but 
available for using without building DDK environment.
You can use C++ Builder for enumeration.

TPortControl component can do enumeration in design and real 
time (source code and help file included):
http://codecentral.borland.com/codecentral/ccweb.exe/listing?id=16567

Now I am finishing article about enumeration and managing FIFO 
control(and put it on codeproject site about some days). 

Vladimir.
Technical Details
Message-ID: <3ebfae17$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!38.144.126.76.MISMATCH!feed2.newsreader.com!newsreader.com!newshosting.com!news-xfer1.atl.newshosting.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail
References: <3ebf9ebf$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,b97565f09d9fdff2
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-05-12 07:28:14 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: Comm Port API??
Newsgroups: borland.public.cppbuilder.nativeapi
X-User-Info: 62.244.14.114 62.244.14.114    
X-Forwarded-For: 192.168.0.147
References:  <3ebf9ebf$1@newsgroups.borland.com>
NNTP-Posting-Host: 207.105.83.65
Message-ID: <3ebfae17$1@newsgroups.borland.com>
Date: 12 May 2003 07:22:15 -0700
X-Trace: newsgroups.borland.com 1052749335 207.105.83.65 (12 May 2003 07:22:15 -0700)
Lines: 28
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!38.144.126.76.MISMATCH!feed2.newsreader.com!newsreader.com!newshosting.com!news-xfer1.atl.newshosting.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail