Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

Identifying which COM port has been assigned to a USB-to-serial adapter based on the FTDI chip

Posted on 2005-03-15
3
Medium Priority
?
359 Views
Last Modified: 2008-03-10
We have a legacy product that uses a USB-to-COM port chip from FTDI to provide a COM port that our app (written in D5) can use.  What I am wanting to do is to identify at run-time what COM port the FTDI device has been assigned to so that I can relieve the user of the need to look in device manager and set the COM port accordingly.  I will also hook into the message that fires when a USB device change is detected and use that to re-assign the COM port on the fly.

I'm just wondering where the proper place to poke around is to get the COM port number - the registry seems the most likely candidate - but there seem to be several registry entries that have the COM port in them, but some of them are there even when the device isn't plugged in.

I realise it's not too much to do with Delphi but it seemded like a good place to ask.
 
0
Comment
Question by:rossmcm
1 Comment
 
LVL 11

Accepted Solution

by:
robert_marquardt earned 800 total points
ID: 13552647
Have a look at http://www.sf.net/projects/jedi-apilib
In the Setup API and Config Manager API Zip there is a nice example (Win 2000/XP) for that.
You need both Zips.
0

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
Is your OST file inaccessible, Need to transfer OST file from one computer to another? Want to convert OST file to PST? If the answer to any of the above question is yes, then look no further. With the help of Stellar OST to PST Converter, you can e…
Suggested Courses
Course of the Month15 days, 17 hours left to enroll

580 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question