WM_DEVICECHANGE and usb mass storage (OT)
- From: "Mike P" <mikep@xxxxxxxxxxxxxxxxxxx>
- Date: Fri, 8 Jul 2005 11:32:02 -0700
Though is slightly off topic, my googling has turned up some familiar names
from here. So here goes -- I have a reasonably simple task. I am trying to
monitor a usb memory stick (usb mass storage) for a WM_DEVICECHANGE message
with a DBT_DEVICEQUERYREMOVE event. The problem that I'm having is that when
I do a 'Safely Remove Hardware' icon, I don't see any WM_DEVICECHANGE
messages if there are files open on the stick. All I see is a message
indicating that the device can't be stopped.
If there are no files open, I can see the DTB_DEVICEREMOVECOMPLETE after the
device is ready to remove.
I have tried all sorts of registering for notifications but nothing that
I've done will get me the DBT_DEVICEQUERYREMOVE event. Suggestions
welcomed --
TIA
Mike P
.
- Follow-Ups:
- Re: WM_DEVICECHANGE and usb mass storage (OT)
- From: Eliyas Yakub [MSFT]
- Re: WM_DEVICECHANGE and usb mass storage (OT)
- Prev by Date: Re: Driver verifier IO SYSTEM VERIFICATION ERROR 226
- Next by Date: RE: Getting HDEV in a unidrv rendering plugin
- Previous by thread: My wits end - custom midi miniport
- Next by thread: Re: WM_DEVICECHANGE and usb mass storage (OT)
- Index(es):
Relevant Pages
|