Hi all,
I’m developing a Win 2k / XP device driver for a PCI and a compact PCI
card, supporting hot plugging.
When I get the “IRP_MN_QUERY_CAPABILITIES”, I just pass it down and set
some values in its completion routine.
Beside other values I set the flags “Removable” and “SurpriseRemovalOk” in
the “DEVICE_CAPABILITIES” struct to “TRUE”. According to the Windows DDK I
expect the Windows “Unplug or Eject Hardware applet” not to be displayed -
that’s my aim. But if I boot up my PC with a card plugged in (this means
that the driver is loaded quite early during boot up), this applet is
displayed. If I plug in a card later on when Windows is already completely
running, this applet is not displayed.
Did anybody had a similar problem or does anybody know some way to avoid
the applet to be displayed without setting the “Removable” flag to
“FALSE”?
Thank you!
Kind regards
Olav