🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

how to enumerate serial ports under vista?

#2332
From: A Nonymous
Date: Tue, 13 Mar 2007 23:04
10 lines
1209 bytes
I have an app that needs to know what serial ports are available.  I 
currently just open the registry key HKEY_LOCAL_MACHINE\hardware\devicemap
\serialcomm and get the port names.  This has worked for years, but under 
Vista it does not.  I looked with regedit and the names are there but the  
open key fails.  I suspect it is some "enhanced" security feature...

As I said I have been using it for a long time because it worked, but 
perhaps there is a better "recommended" way of doing this?

Does anybody know of another way?
Technical Details
Message-ID: <Xns98F2AD9E12FA4anonymoushotmailcom@207.105.83.66>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.germany.com!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,ac871bf8921dea56,start
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: how to enumerate serial ports under vista?
From: A Nonymous <anonymous@hotmail.com>
Message-ID: <Xns98F2AD9E12FA4anonymoushotmailcom@207.105.83.66>
User-Agent: Xnews/5.04.25
NNTP-Posting-Host: 74.254.162.162
Date: 13 Mar 2007 15:04:00 -0800
X-Trace: newsgroups.borland.com 1173823440 74.254.162.162 (13 Mar 2007 15:04:00 -0800)
Lines: 10
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.germany.com!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail