By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,899 Members | 1,196 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,899 IT Pros & Developers. It's quick & easy.

Querying serial ports device information. Getting "unfriendly" identifier

P: n/a

I want to fill a list box with the "friendly" names for the serial ports
installed on a system, yet I also need to query the names required to
connect to that port.
ie I enumerate the friendly names of the Ports using the
SetupDiGetDeviceRegistryProperty api call passing SPDRP_FRIENDLYNAME to get
the friendly name "Prolific USB-to-Serial Comm Port (COM3)", but I also need
to know how to get the "COM3" part on its own.
I tried changing the SPDRP_FRIENDLYNAME to several other possible
parameters available to that api call but didn't get "COM3" from any of

IntPtr.Zero) )
Nov 16 '05 #1
Share this Question
Share on Google+
1 Reply

P: n/a
S'ok. Found some code samples on The Code Project
Nov 16 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.