A Windows Vista forum. Vista Banter

Welcome to Vista Banter.

You are currently viewing our boards as a guest which gives you limited access to view most discussions, articles and access our other FREE features. By joining our free community you will have access to ask questions and reply to others posts, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact support.

Go Back   Home » Vista Banter forum » Microsoft Windows Vista » Hardware and Windows Vista
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Hardware and Windows Vista Hardware issues in relation to Windows Vista. (microsoft.public.windows.vista.hardware_devices)

Remove hardware from "Safely Remove Hardware" list



 
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old August 7th 07, 11:58 AM posted to microsoft.public.windows.vista.hardware_devices
-John T
external usenet poster
 
Posts: 1
Default 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.

  #2 (permalink)  
Old August 7th 07, 05:19 PM posted to microsoft.public.windows.vista.hardware_devices
Uwe Sieber
external usenet poster
 
Posts: 90
Default 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\U SB\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




 




Thread Tools
Display Modes

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

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



All times are GMT. The time now is 03:29 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.Search Engine Optimization by vBSEO 3.0.0 RC6
Copyright ©2004-2024 Vista Banter.
The comments are property of their posters.