Hi,
I'm a newbie by driver development. So I'm sorry if my question is too
simple or absurd.
Is it required to call IoAttachDeviceToDeviceStack routine in an AddDevice
routine for a WDM driver? I'm asking this because I need (for a homework -
we have a modified STUPID driver from Walter Oney) to add multiple devices
in an AddDevice routine (for each found parallel port a DO of type
FILE_DEVICE_PARALLEL_PORT) But I think this is against the device stack
mechanism. For each DO we need to get the corresponding parallel port device
object (so far I read it's parport.sys for WinXP not?) and save it in the
DO's device extension. And some Dispatch routines should forward the calls
to parallel port DO. But where is the device stack now? I'm adding multiple
devices in the AddDevice so it's impossible to call the
IoAttachDeviceToDeviceStack for each one. It means the newly created device
objects will not have a PDO from them. Is this true? And what are the side
effects if I don't add my device to the stack?
PS: As the end result we will implement a driver for a parallel port LCD
screen.
Thanks for all replies.