Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Vista Newsgroups > Vista hardware & devices

Vista - Remove hardware from "Safely Remove Hardware" list

Reply
 
Old 08-07-2007   #1 (permalink)
-John T


 
 

Remove hardware from "Safely Remove Hardware" list

Hi,

I'm currently running Windows Vista Home Premium 64bit.

I have an internal card reader in my system.

When I turn on my system with the card reader connected, the "Safely Remove
Hardware" icon pops up.

I would like to remove the internal card reader from this, mainly because I
don't want to accidentally click on it, and I don't believe it should be
there as there it does not actually need to be removed. I want it to act
like a floppy disk drive or a CD ROM drive for example.

I don't want a solution where I hide the icon and I don't want to remove the
icon altogether, as I do use a USB key too.


Thanks
-John T.


My System SpecsSystem Spec
Old 08-07-2007   #2 (permalink)
Uwe Sieber


 
 

Re: Remove hardware from "Safely Remove Hardware" list

-John T wrote:
> Hi,
>
> I'm currently running Windows Vista Home Premium 64bit.
>
> I have an internal card reader in my system.
>
> When I turn on my system with the card reader connected, the "Safely Remove
> Hardware" icon pops up.
>
> I would like to remove the internal card reader from this, mainly because I
> don't want to accidentally click on it, and I don't believe it should be
> there as there it does not actually need to be removed.


This can be achieved by modifying a registry value. So far
I had no time writing a little tool for this...

Devices are shown there if they are marked as removable and
if they do no have the 'surprise removal ok' flag. These are
bit coded flags:

From cfgmgr32.h:
#define CM_DEVCAP_REMOVABLE (0x00000004)
#define CM_DEVCAP_SURPRISEREMOVALOK (0x00000080)

The device capabilities are found in the registry in a value
named 'Capabilities' under (sample for one of my USB flash
drives):
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\USB\Vid_058f&Pid_6331\058F091111B

If you take away 4 from the value or add 80h and then
refresh the save removal dialog by toggeling the checkbox,
then the drive is gone.
But the value is reset when you attach the drive for the
next time. This is hard coded into the driver and read
each time the drive is loaded. If you export the modified
value an reg file then you can silently load it on startup
by
regedit /s hidecardreader.reg


The device id string of your card reader (this
Vid_058f&Pid_6331\058F091111B thing) is found in the properties
of the USB device in the device manager. My ListUsbDrives
tool shows it too (the 'Ctrl DevID'):
http://www.uwe-sieber.de/files/listusbdrives.zip


Greetings from Germany

Uwe




My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
hard drives showing in "safely remove hardware" Vista hardware & devices
Safely Remove Hardware - USB flash drive "in use" Vista General
Question about "safely remove hardware" icon Vista General
The "Safely Remove Hardware" in taksbar's system tray... Vista General
Can't they provide an option to remove "Safely Remove Hardware"? Vista General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46