- Question on 'Safely Remove Hardware' for Flash card (usb mass storage)
- Posted by Mike P on August 31st, 2005
Hi --
I have a program running that saves files on a flash card. It processes
the WM_DEVICECHANGE message for DBT_DEVICEQUERYREMOVE and closes its open
files and returns. But, when I use the 'Safely Remove Hardware' icon, I get
the system message that the device can't be removed - try again later. This
message happens before I return from the WM_DEVICECHANGE notification. It
appears that the system only gives me a very short window in which to get
the files closed and then complains.
So my question is --- Is there any way that I specify a wait interval
for the device so that I can get the files closed and the device removed?
TIA
Mike P
- Posted by Pavel A. on August 31st, 2005
Which OS: XP or win2k?
--PA
"Mike P" <mikep@NOSPAMTurboware.com> wrote in message news:eTxJ7%23krFHA.3888@TK2MSFTNGP10.phx.gbl...
- Posted by Mike P on August 31st, 2005
Only needed on Win XP (and Media Center) ---
"Pavel A." <pavel_a@NOwritemeNO.com> wrote in message
news:O14TxHnrFHA.3792@TK2MSFTNGP10.phx.gbl...
- Safely Remove Hardware (Customizing) by Barry Gunn
- How to remove Safely remove hardware Icon from Sys Tray,Not Hiding (Microsoft Windows) by Samshun
- Error adding hardware (mass storage--camera, iPod) via USB (Microsoft Windows) by Joe Rose
- Can not safely remove mass storage (Performance/Maintainence) by Posthumous
- Cannot safely remove mass storage revisited (Performance/Maintainence) by Posthumous

