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
CUIntArray ports; EnumerateSerialPorts(ports); for (int i = 0; i