Disabling Safely Remove Hardware icon

Discussion in 'Windows Vista Drivers' started by Andrew Ward, Oct 24, 2007.

  1. Andrew Ward

    Andrew Ward Guest

    Hello,
    I am using WinUSB to communicate with my device and have written an
    INF file to install my device. I would like to disable the 'Safely
    Remove Hardware' system tray icon when my device is plugged in. I have
    tried adding the following lines to my INF file:

    [USB_Install.HW]
    AddReg = Dev_AddReg

    [Dev_AddReg]
    HKR,,DeviceInterfaceGUIDs,0x00010000,"MY_GUID_HERE"
    HKR,,"SurpriseRemovalOK",0x00010001,1
    HKR,,"Removable",0x00010001,1
    HKR,,"RemovalPolicy",0x00010001,3

    But the system tray icon still appears (on Windows XP with WinUSB
    installed via CoInstaller). Apart from that the device is working
    properly.

    Any ideas?
    Andy.
     
    Andrew Ward, Oct 24, 2007
    #1
    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.