"jun" <
[email protected]> wrote in message
news:
[email protected]...
> I want to write a application on a serial device in Win2000, and the
device
> has a driver, but I don't know how to use this driver in my application;By
> the way,I want to know how the serial device and it's driver and Win2000
> work together.Can Win2000 recognized the serial device and it's driver,if
> so,how?and when(when Win2000 starting)?
All versions of windows have a driver called SERENUM that will read the PnP
id from an attached device using an obscure protocol.
Most drivers support an interface that uses CreateFile, ReadFile, WriteFile,
and/or DeviceIoControl. You can apply either of these general strategies to
learn what you need to know:
Plan A: By means of a prodigious feat of mentation, possibly involving
telepathic contact with the author of the driver, deduce the correct
interface.
Plan B: Obtain documentation from the hardware vendor about how to use their
driver.
--
---
Walter Oney
Training and Consulting
http://www.oneysoft.com
I'd go with plan A, but first I would need either a cell from their body (either from a hair follicle or a sample of their blood) to use for my witchcraft.
Quote from: iago on November 17, 2003, 12:32 PM
I'd go with plan A, but first I would need either a cell from their body (either from a hair follicle or a sample of their blood) to use for my witchcraft.
iago, you're really out of date. Should go get Teach Yourself Telepathy in 21 Days from your local book store.