471,123 Members | 849 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,123 software developers and data experts.

Finding active com ports

I am looking for help in finding a list of all active com ports. I have
found a function to do it, but it is needs a GUID. What is the GUID of a com
port? Am I barking up the wrong tree?

Thanks
Oct 4 '06 #1
2 2198
"news" wrote:
I am looking for help in finding a list of all active com ports. I have
found a function to do it, but it is needs a GUID. What is the GUID of a com
port? Am I barking up the wrong tree?
For com ports, perhaps you can use the old good way of
enumerating HKLM\HARDWARE\DEVICEMAP\SERIALCOMM .

If you're going to work with various devices, you can also learn
the modern way - based in interfaces, GUIDs and so on.
Then please read MSDN documentation and ask
in microsoft.public.win32.programmer.kernel or
WinFX newsgroups.

--PA

Oct 4 '06 #2

"news" <wj****@hotmail.comwrote in message
news:Xe******************************@adelphia.com ...
>I am looking for help in finding a list of all active com ports. I have
found a function to do it, but it is needs a GUID. What is the GUID of a
com port? Am I barking up the wrong tree?

Thanks
Maybe you want SetupDiGetClassDevs with DIGCF_DEVICEINTERFACE and
GUID_DEVINTERFACE_COMPORT.
This article may help you as well:
http://msdn.microsoft.com/library/en...asp?frame=true
Oct 10 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by rollasoc | last post: by
3 posts views Thread by rollasoc | last post: by
9 posts views Thread by Laurent Bugnion | last post: by
1 post views Thread by Kevin Jackson | last post: by
vdraceil
3 posts views Thread by vdraceil | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.