Hi i want to know whether after safely removing a usb device from system tray icon
can i mount the same device without unplugging it
xxxxx@nestec.net wrote:
Hi i want to know whether after safely removing a usb device from system tray icon
can i mount the same device without unplugging it
What do you mean by “mount”?
In my experience as a user, if I plug in a memory card reader with a
card in it, and then “safely remove” the entire reader, there is no way
to get it alive again without unplug/replug. However, if I “safely
remove” only the mounted volume, then I can insert a new card in there
without replugging the reader.
–
Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.
Hi,
after the safe remove usbhub’s PDO is alive and you must initiate the driver
stack rebuilding( i.e. calling AddDevice for the FDO driver and filters ),
the kernel sometimes do this, but it seems there is no documented interface
to do this from the 3d-party applications or drivers. Bus driver can
initiate the stack rebuilding w/o the PDO removing, it calls
IoInvalidateDeviceRelations( BusRelations ) and does not report this PDO,
then calls IoInvalidateDeviceRelations( BusRelations ) and reports this PDO.
wrote in message news:xxxxx@ntdev…
> Hi i want to know whether after safely removing a usb device from system
> tray icon
> can i mount the same device without unplugging it
>
Slava, if you report a PDO as missing in a bus relations QDR, it will
get removed from the system and you must delete it when it gets a
IRP_MN_REMOVE_DEVICE. You cannot report the same PDO device object
value again in a subsequent QDR unless IoCreateDevice happens to return
the same value. What you described will get the stack rebuilt and
restarted, but I just wanted to point out that the PDO value itself will
be different.
Also, only the bus driver can do this. You cannot do this from your
driver which is sitting on top of the PDO.
d
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Slava Imameyev
Sent: Wednesday, August 09, 2006 2:54 PM
To: Windows System Software Devs Interest List
Subject: Re:[ntdev] usb detection
Hi,
after the safe remove usbhub’s PDO is alive and you must initiate the
driver stack rebuilding( i.e. calling AddDevice for the FDO driver and
filters ), the kernel sometimes do this, but it seems there is no
documented interface to do this from the 3d-party applications or
drivers. Bus driver can initiate the stack rebuilding w/o the PDO
removing, it calls IoInvalidateDeviceRelations( BusRelations ) and does
not report this PDO, then calls IoInvalidateDeviceRelations(
BusRelations ) and reports this PDO.
wrote in message news:xxxxx@ntdev…
> Hi i want to know whether after safely removing a usb device from
> system tray icon can i mount the same device without unplugging it
>
—
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer