setupapi: enumerate serial ports
Alexandre Julliard
julliard at winehq.org
Sun Feb 27 10:27:36 CST 2005
Juan Lang <juan_lang at 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 at winehq.org
More information about the wine-devel
mailing list