Prev: GetPrinterDataFromPort()
Next: msvad question
From: igor on 16 Mar 2005 13:40 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.
From: Maxim S. Shatskih on 16 Mar 2005 15:04 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(a)storagecraft.com http://www.storagecraft.com "igor" <no-spam(a)hotmail.com> wrote in message news:OzVsnelKFHA.1948(a)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. > >
From: igor on 16 Mar 2005 18:09 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(a)storagecraft.com> wrote in message news:Od89gNmKFHA.2716(a)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(a)storagecraft.com > http://www.storagecraft.com > > "igor" <no-spam(a)hotmail.com> wrote in message > news:OzVsnelKFHA.1948(a)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. >> >> > >
From: Maxim S. Shatskih on 18 Mar 2005 00:51 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(a)storagecraft.com http://www.storagecraft.com "igor" <no-spam(a)hotmail.com> wrote in message news:%23noX70nKFHA.3832(a)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(a)storagecraft.com> wrote in message > news:Od89gNmKFHA.2716(a)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(a)storagecraft.com > > http://www.storagecraft.com > > > > "igor" <no-spam(a)hotmail.com> wrote in message > > news:OzVsnelKFHA.1948(a)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. > >> > >> > > > > > >
|
Pages: 1 Prev: GetPrinterDataFromPort() Next: msvad question |