Technology Questions

Go Back   Technology Questions > Software Questions > Operating System Questions > Vista Community > Vista Hardware

Vista Hardware microsoft.public.windows.vista.hardware_devices

Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old 08-07-2007, 05:10 AM
-John T
Newsgroup Contributor
 
Posts: n/a
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.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

 
Old 08-07-2007, 05:10 AM
  #2 (permalink)  
Old 08-07-2007, 09:30 AM
Uwe Sieber
Newsgroup Contributor
 
Posts: n/a
Re: Remove hardware from "Safely Remove Hardware" list

-John T wrote:[color=blue]
> 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.[/color]

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'):
[url]http://www.uwe-sieber.de/files/listusbdrives.zip[/url]


Greetings from Germany

Uwe




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is Off
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Gettin Rid of "Safely Remove Hardware" tray Icon Tevibear Windows XP 8 07-10-2007 06:10 PM
The "Safely Remove Hardware" in taksbar's system tray... Carlos Windows Vista 3 06-11-2007 06:00 PM
Can't they provide an option to remove "Safely Remove Hardware"? Cat Windows Vista 2 02-15-2007 03:32 PM
"Safely remove hardware" not shown in "Users" vs "Domain Users" grouped user SE Windows XP 5 01-04-2007 04:46 AM
Flash drives and the "safely remove hardware" option Keith Windows XP 7 01-04-2007 03:38 AM


New To Technology Questions? Do You Need Help with Your Computer or Device? Do You Need Help with this site?

All times are GMT -8. The time now is 07:05 AM.


2003 - 2009 All Rights Reserved. Technology Questions

Search Engine Friendly URLs by vBSEO 3.3.0