What is proper way to detect all available serial ports on Windows?

Posted by Sorin Sbarnea on Stack Overflow See other posts from Stack Overflow or by Sorin Sbarnea
Published on 2010-04-20T09:49:08Z Indexed on 2010/04/20 9:53 UTC
Read the original article Hit count: 267

Filed under:
|
|
|

There are several ways to list serial ports under Windows but I'm not sure what is the proper way: the way that does detect all serial ports that are available.

One good code example is http://www.naughter.com/enumser.html - where there at 9 (nine!) ways of enumerating serial devices.

The question is: what is the optimal way of doing it.

Requirements: * to not open ports in order to check if they are available. * to be able to detect ports with different names than COMx.

© Stack Overflow or respective owner

Related posts about serial-port

Related posts about Windows