I have developed two drivers for Windows 2000: a virtual
bus driver and a filter driver for one of my devices. The
filter driver queries the bus driver, so the bus driver
needs to be loaded first. Unfortunately on system startup
the filter driver is loaded first and fails to initialize
properly. I've added a Dependencies directive to my
AddService section for the filter driver as follows:

[filter_addservice]
...
Dependencies = BusDriver
...

where "BusDriver" is the name of the service as it shows
up in the services section of the registry. Windows is
ignoring this directive. Can someone tell me the right
way to accomplish what I am trying to accomplish?

Re: Dependencies inf directive by Eliyas

Eliyas
Wed Nov 19 14:39:15 CST 2003

Service dependencies don't work for PNP drivers.

How can a filter driver for one of your child device load before the bus
driver enumerates it? Either that or the other device for which the filter
driver is loaded is not a child device of your virtual bus driver.

If that's the case then you have to use PNP notification mechanism between
your filter and bus to detect when the other driver is ready for
communication.

Keyword: PNP Notification. Seach google for more info.

--
-Eliyas
This posting is provided "AS IS" with no warranties, and confers no rights.
http://www.microsoft.com/whdc/hwdev/driver/kb-drv.mspx



Re: Dependencies inf directive by Brett

Brett
Wed Nov 19 15:39:46 CST 2003

That's right, the filter is a child of the SCSI bus, not
the virtual bus, but it still depends on the virtual bus.

Thanks for the suggestion. I will look into PNP
Notification.


>-----Original Message-----
>Service dependencies don't work for PNP drivers.
>
>How can a filter driver for one of your child device load
before the bus
>driver enumerates it? Either that or the other device for
which the filter
>driver is loaded is not a child device of your virtual
bus driver.
>
>If that's the case then you have to use PNP notification
mechanism between
>your filter and bus to detect when the other driver is
ready for
>communication.
>
>Keyword: PNP Notification. Seach google for more info.
>
>--
>-Eliyas
>This posting is provided "AS IS" with no warranties, and
confers no rights.
>http://www.microsoft.com/whdc/hwdev/driver/kb-drv.mspx
>
>
>.
>