Re: setupapi: enumerate serial ports
27 Feb
2005
27 Feb
'05
10:27 a.m.
Juan Lang <juan_lang(a)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. -- Alexandre Julliard julliard(a)winehq.org
7590
Age (days ago)
7590
Last active (days ago)
0 comments
1 participants
participants (1)
-
Alexandre Julliard