Spiro Trikaliotis
2004-06-28 18:41:31 UTC
Hello,
I'm currently writing a device which is attached to the parallel port.
On NT4, this driver is installed via the SC manager, it enumerates the
parallel port and allocates/deallocates it via internal IOCTL.
I ask myself which way to use for Win 2000/XP with the ability for
processing PnP, that is, a new attached or deattached parallel port
should be recognized. I thought of three possibilities:
1. Like on NT4
2. Use a root-enumerated driver as a kind of bus driver, enumerate the
parallel ports and register for Plug-n-Play notifications to be able
to handle plugged-in parallel ports.
3. Write a class filter for the parallel port, which just passes every
IRP to the parallel port driver, but give another interface for my
device.
What do you thing? Which one is the best (and least-intrusive) approach?
Another option would be to let my driver be installed "in parallel" to
every parallel port driver. But, from my understanding, this is not
possible, is it? An INF file is exclusive to PnP hardware, isn't it?
Thanks for any inputs,
Spiro.
I'm currently writing a device which is attached to the parallel port.
On NT4, this driver is installed via the SC manager, it enumerates the
parallel port and allocates/deallocates it via internal IOCTL.
I ask myself which way to use for Win 2000/XP with the ability for
processing PnP, that is, a new attached or deattached parallel port
should be recognized. I thought of three possibilities:
1. Like on NT4
2. Use a root-enumerated driver as a kind of bus driver, enumerate the
parallel ports and register for Plug-n-Play notifications to be able
to handle plugged-in parallel ports.
3. Write a class filter for the parallel port, which just passes every
IRP to the parallel port driver, but give another interface for my
device.
What do you thing? Which one is the best (and least-intrusive) approach?
Another option would be to let my driver be installed "in parallel" to
every parallel port driver. But, from my understanding, this is not
possible, is it? An INF file is exclusive to PnP hardware, isn't it?
Thanks for any inputs,
Spiro.
--
Spiro R. Trikaliotis
http://www.trikaliotis.net/
Spiro R. Trikaliotis
http://www.trikaliotis.net/