I have developed a failover driver for a fibre channel
medium changer device on Windows 2000 that is tightly
dependent on the PNP Manager. When I pull the cable out
of my hardware, one of my Win/2K systems immediately
rescans the bus without any intervention on my part,
notifies Device Manager of a hardware change, and sends
IRP_MN_SURPISE_REMOVAL to my driver.
I have another Windows system on which the rescan does
not automatically take place. On that system I have to
use device manager to manually "Scan for hardware
changes" before the surprise removal notification will
happen.
In order for this driver to work, the scan needs to
happen automatically. How do I get this to happen? Does
it depend on Windows or on the fibre channel adapter card
and its driver?