Article View: borland.public.cppbuilder.nativeapi
Article #2342Re: how to enumerate serial ports under vista?
From: A Nonymous
Date: Thu, 15 Mar 2007 15:21
Date: Thu, 15 Mar 2007 15:21
39 lines
2483 bytes
2483 bytes
Jim, Thanks for the reply. I used to use code like this, and guess I will have to go back to it... Reading the registry was just so much easier and quicker. Anyhow, the Vista problems are getting worse. When I first did our Vista compatibility testing, I checked everywhere we used the registry, among other things... The serial port thing worked fine. After releasing a Vista compatibility update, serverl users were complaiing about not seeing any serial ports, but for some it worked fine. I retested and suddenly it wasn't working for me either. The problem reports had come from our tech support, who did their own test and kept tellig users it worked fine. When I told them it was broken the seemed surprised. We were both using the same Vista PC for testing. Under my account it stopped working, but on their account it was still working fine. The user is supposed to be using an admin equivelant account for our software and both of our accounts apperaed to be the same... After looking around I happened to open the device manager under the TECHSUPPORT account/profile. All I did was look to see what ports showed up, absolutely no changes were made. I ran our app again and now the serial ports didn't show up! I created another test account on the Vista PC and installed our software. The serial ports showed up. I opened the device manager, ran our app again and no serial ports... Why should opening the device manager have anything to do with this? I hate black magic! I think Vista is going to be a PROBLEM! Sorry for the rant. Thanks again for the code snippet.
Technical Details
Message-ID:
<Xns98F45F2B4A9CDanonymoushotmailcom@207.105.83.66>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<Xns98F2AD9E12FA4anonymoushotmailcom@207.105.83.66> <45f8418a$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,ac871bf8921dea56 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: how to enumerate serial ports under vista? From: A Nonymous <anonymous@hotmail.com> References: <Xns98F2AD9E12FA4anonymoushotmailcom@207.105.83.66> <45f8418a$1@newsgroups.borland.com> Message-ID: <Xns98F45F2B4A9CDanonymoushotmailcom@207.105.83.66> User-Agent: Xnews/5.04.25 NNTP-Posting-Host: 74.254.162.162 Date: 15 Mar 2007 07:21:17 -0800 X-Trace: newsgroups.borland.com 1173968477 74.254.162.162 (15 Mar 2007 07:21:17 -0800) Lines: 39 Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail