How to enumerate Communication Port?

VC6, Win98/NT

How can i enumerate the serial com ports that are available on a PC?

Sample codes would be appreciated.





leowlfAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
migelConnect With a Mentor Commented:
Hi!
You can find this info in the registry
HKEY_LOCAL_MACHINE\HARDWARE\DEVICEMAP\SERIALCOMM
for NT entries are Serial0...SerialN
for Windows95 : COM1....ComN
0
 
leowlfAuthor Commented:
Edited text of question.
0
All Courses

From novice to tech pro — start learning today.