Hello,
I am writing a NDIS-WDM (USB ) driver for NDIS5.1 (XP). I used the
sample from Eliyas.
I saw the mailing lists and set the NDIS_ATTRIBUTE_SURPRISE_REMOVAL_OK
bit in the call to NdisMSetAttributesEx from MiniportInitialize
function. And I implemented the additional MiniportPnPEventNotify
function also.
When I plug-in the cable, Windows loads my driver. But the "System Tray"
icon for "Safely Remove Hardware" appears. When I remove the cable, I
get a call to my PnPEventNotify function with SurpriseRemoved event set.
There is no pop-up error message as per XP standards.
But, I was under the understanding that if the SURPRISE_REMOVAL_OK bit
is set, even the "tray icon" does not appear.
Please help me in making sure that my understanding is right. If I am
wrong, what have I done wrong in the driver that this is not working?
Any pointers or any kind of help is greatly appreciated.
Thanks in advance for the great help.
Best Regards,
GNRaj