Maxim
Thu Mar 17 23:51:26 CST 2005
There was some named event which is signaled before the FS will mount. Use
WinObj to find the name.
--
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
maxim@storagecraft.com
http://www.storagecraft.com
"igor" <no-spam@hotmail.com> wrote in message
news:%23noX70nKFHA.3832@TK2MSFTNGP12.phx.gbl...
> that is very well understood, and MSDN explicitely points out on this fact
> in WM_DEVICECHANGE section. But my question was not about that :)
> I was asking how is it possible (if possible) to get tray/media in change
> event from user-mode app BEFORE(!) app receives
> WM_DEVICECHANGE/DBT_DEVICEARRIVAL notification.
> Many thanks!
> Igor.
>
> "Maxim S. Shatskih" <maxim@storagecraft.com> wrote in message
> news:Od89gNmKFHA.2716@TK2MSFTNGP15.phx.gbl...
> > IIRC this notification (media insert) is sent by the FSD after mount
> > only,
> > and mounting the CD can take seconds.
> >
> > --
> > Maxim Shatskih, Windows DDK MVP
> > StorageCraft Corporation
> > maxim@storagecraft.com
> >
http://www.storagecraft.com
> >
> > "igor" <no-spam@hotmail.com> wrote in message
> > news:OzVsnelKFHA.1948@TK2MSFTNGP14.phx.gbl...
> >> WM_DEVICECHANGE (with DBT_DEVICEARRIVAL) works fine but is so slo-o-ow in
> >> CD/DVD-rom case. It is not unusual to wait about 10 seconds between
> >> injecting the tray and the moment apps finally recieves
> >> WM_DEVICECHANGE/DBT_DEVICEARRIVAL notification. Is there any way for
> >> user-mode app to get "earlier" notification about media insert/tray
> >> inject
> >> event?
> >> Many thanks!
> >> Igor.
> >>
> >>
> >
> >
>
>