How to remove "Safely Remove Hardware" Icon for NDIS-WDM Driver

Discussion in 'Windows Vista Drivers' started by GNRaj, Dec 19, 2003.

  1. GNRaj

    GNRaj Guest


    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, Dec 19, 2003
    1. Advertisements

  2. GNRaj

    GNRaj Guest

    Hello everyone (and Eliyas)

    One more additional information found after analyzing and debugging.
    This "Safely Remove Hardware" icon appears only after applying Windows
    XP Service Pack 1/1a.

    With Windows XP Gold (without Service pack), the "Safely Remove
    Hardware" icon does not appear in the system tray.

    Could it point to some changes in the Service Pack?

    Thanks & Best Regards,

    GNRaj, Dec 19, 2003
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.