GUID_IO_VOLUME_DISMOUNT

Hi,

After getting “GUID_IO_VOLUME_DISMOUNT” PnP event
(EventCategoryTargetDeviceChange), as part of processing this event in the
PnP notification callback routine, is it fine to do IO on a file (residing
on File System) on that volume meaning can we assume that Volume/FS is not
yet unmounted and we can do last few IOs.

Thanks,
Sunil

No you cannot, you will get STATUS_TOO_LATE or STATUS_FILE_CLOSED or such.


Maxim S. Shatskih
Windows DDK MVP
xxxxx@storagecraft.com
http://www.storagecraft.com

“Sunil Patil” wrote in message news:xxxxx@ntdev…
Hi,

After getting “GUID_IO_VOLUME_DISMOUNT” PnP event (EventCategoryTargetDeviceChange), as part of processing this event in the PnP notification callback routine, is it fine to do IO on a file (residing on File System) on that volume meaning can we assume that Volume/FS is not yet unmounted and we can do last few IOs.

Thanks,
Sunil

What if we attempt to do IO on volume object itself in below scenario, will
that fail too?

On Thu, Jan 13, 2011 at 5:04 PM, Maxim S. Shatskih
wrote:

> No you cannot, you will get STATUS_TOO_LATE or STATUS_FILE_CLOSED or
> such.
>
> –
> Maxim S. Shatskih
> Windows DDK MVP
> xxxxx@storagecraft.com
> http://www.storagecraft.com
>
> “Sunil Patil” wrote in message news:xxxxx@ntdev…
> Hi,
>
> After getting “GUID_IO_VOLUME_DISMOUNT” PnP event
> (EventCategoryTargetDeviceChange), as part of processing this event in the
> PnP notification callback routine, is it fine to do IO on a file (residing
> on File System) on that volume meaning can we assume that Volume/FS is not
> yet unmounted and we can do last few IOs.
>
> Thanks,
> Sunil
>
> —
> NTDEV is sponsored by OSR
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>