🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Enum com ports ignore modems etc

#995
From: northern_RATT
Date: Thu, 29 Nov 2007 04:25
17 lines
1353 bytes
Hi Folks;

I need to populate a menu w/ 
available COM ports. I know how to 
do this with CreatFile(dwAccess=0).
Fine & Dandy, But if this port is 
attached to a modem, IR port, 
Bluetooth device then I want to 
skip it. I'm only interested in 
RS232, 9 pin D connector, COM 
ports. So my question is: If I get 
a valid handle back form CreateFile 
is there a good way to determine 
what is on the other end?

Thanks
Drew 
Technical Details
Message-ID: <474e3f47$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!feeder.news-service.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,e757ae01059b0e21,start
X-Google-Attributes: gid10cc67,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: "northern_RATT" <northern_RATT@hotmail.com>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Enum com ports ignore modems etc
Date: Wed, 28 Nov 2007 20:25:47 -0800
Lines: 19
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198
NNTP-Posting-Host: 207.81.14.218
Message-ID: <474e3f47$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1196310343 207.81.14.218 (28 Nov 2007 20:25:43 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!feeder.news-service.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail