PC Review


Reply
Thread Tools Rate Thread

USB Mass Storage Unsafe Removal of Device

 
 
Robert Shaw
Guest
Posts: n/a
 
      29th Mar 2004
I have a USB mass storage device plugged into a Windows
2000 SP4 machine. It is using the generic SP4 USB stack,
usbhub.sys, usbstor.sys. They apparently leave the
SurpriseRemovalOK BIT reset to the unfortunate yet
eternally wrong 0. I can programatically send an IOCTL to
LOCK_DEVICE, but when subsequently removing the USB cable,
I get the notorious "Unsafe Removal of Device" dialog box.
Is there a programmatical way to avoid this popup, as I
know the removal is indeed safe, without having to use the
Unplug/Eject icon in the Taskbar tray? Again, the device
is using generic MSFT drivers, so I have no way to control
the DEVICE ATTRIBUTES of the USB device. Perhaps some way
to remove the device from a DLL, or a neighboring driver?
I do have these available. In XP, the device driver sets
the DeviceHotplug flag, so no unwanted popup occurs.
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
USB MAss storage Device safe removal on XPe =?Utf-8?B?QmlsbA==?= Windows XP Embedded 2 9th Nov 2007 05:16 PM
Unsafe removal of device SAC Microsoft Windows 2000 1 10th Jan 2005 10:57 PM
Unsafe removal of device =?Utf-8?B?SlJHdW5u?= Microsoft Windows 2000 2 8th Jan 2005 07:59 PM
Unsafe removal of device Rich Microsoft Windows 2000 Setup 0 6th Sep 2003 08:23 PM
Re: Unsafe Removal of Device Digital Flyte Microsoft Windows 2000 Hardware 2 10th Jul 2003 10:42 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:12 AM.