attaching a driver to the devicestack

attaching a driver to the devicestack

Post by CPR F » Wed, 03 Sep 2003 20:09:20

i have an ndis miniport driver has to communicate with the standard serial
driver via IRPs. the problem is that i do not know how to attach the serial
driver to the miniport driver. how do i get the serial driver to be the
"NextDeviceObject" returned by NdisMGetDeviceProperty?

there is another possibility, too. since the standard serial driver is
installed independent from my driver, maybe i do not have to attach it to my
devicestack, but i still have to tell my driver where to send the IRPs. how
can that be done?

thanks for your help!

attaching a driver to the devicestack

Post by Don Bur » Wed, 03 Sep 2003 21:03:48

Look at the sequence:


This will get you the object for the com port you are dealing with. You do
not need to force it to be the NextDeviceObject (in fact you should not).
Be sure to dereference the com port when done.

Don Burn (MVP, Windows DDK)
Windows 2k/XP/2k3 Filesystem and Driver Consulting