Juan Lang juan_lang@yahoo.com writes:
- /* FIXME: it should be possible for more than four COM ports to exist, not
* sure why we retain that limit, but winspool does too so go with it.
*/
- for (i = 0, ret = 0; i < 4; i++)
- {
if (SETUP_SerialPortExists(i))
ret++;
- }
There's no reason to limit to 4 serial ports (and winspool should be fixed too). Probably the best way is to do a QueryDosDevice(NULL) which gets you a full device list and the return every COM device in that list.