Sign in to follow this  
Followers 0
ChrisL

Com Ports

5 posts in this topic

Could someone please tell me how to get a list of com ports on a W2K PC.

I need to find a specifically named port and then find its com port number. I don't know how to find it, I tried the registry which has numbered keys but they don't follow that they are the com port number..

Any help appreciated.

Thanks

Chris

Share this post


Link to post
Share on other sites



Could someone please tell me how to get a list of com ports on a W2K PC.

I need to find a specifically named port and then find its com port number. I don't know how to find it, I tried the registry which has numbered keys but they don't follow that they are the com port number..

Any help appreciated.

Thanks

Chris

HKEY_LOCAL_MACHINE\HARDWARE\DEVICEMAP\SERIALCOMM

Reading the help file before you post... Not only will it make you look smarter, it will make you smarter.

Share this post


Link to post
Share on other sites

Share this post


Link to post
Share on other sites

That kind of helps, thanks.. but how does the information there link in with the description in Device manager/com ports

uh..It's how there is a tab there that says communications port (comx)

Try deleting the entry and find out for sure B)

Seriously, the answer to the question you asked is to enumerate the keys of these ports. If your real

problem is something else, a better problem description would be in order.


Reading the help file before you post... Not only will it make you look smarter, it will make you smarter.

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

uh..It's how there is a tab there that says communications port (comx)

Try deleting the entry and find out for sure B)

Seriously, the answer to the question you asked is to enumerate the keys of these ports. If your real

problem is something else, a better problem description would be in order.

It was that the device in the registry seems very non descript.

Posted Image

If a specific device is installed on the computer I need to write to an ini file the location of the hardware.

This would be fine but it would assume that this device always has the value VCP0, but what if there was another USB serial port then it could be VCP1, VCP2 etc..

In device manager there is more of a description

Posted Image

I guess I need to know what com ports there are and what device has been assigned to what com port, but without using the windows gui..

I hope that makes it clearer..

Thanks

Edited by ChrisL

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0