Re: Removable media dismount time out



Thanks, this would surely give us some direction to work with, and yes I
believe the PnPWaitIoDelay value is the one we're looking for, we need to do
some tests first though. One other thing, looking in the documentation
description I assume that the IO retry operation is only performed once isn't
it?

Regards,

Luthfi

"Michel Verhagen (eMVP)" wrote:

Better yet, take a look here:
http://msdn.microsoft.com/en-us/library/aa912238.aspx

The PnPWaitIoDelay may be of interest too!

Good luck,

Michel Verhagen, eMVP
Check out my blog: http://GuruCE.com/blog

GuruCE
Microsoft Embedded Partner
http://GuruCE.com
Consultancy, training and development services.

Michel Verhagen (eMVP) wrote:
Lookup the PNPUnload registry flag
(HKEY_LOCAL_MACHINE\System\StorageManager\PNPUnloadDelay) and set it to
a smaller value (which you can only do if you are the OEM since this key
is only read during boot (from the boot hive), AFAIK, maybe it changed
in CE 6.0, there was some talk about that IIRC).


Good luck,

Michel Verhagen, eMVP
Check out my blog: http://GuruCE.com/blog

GuruCE
Microsoft Embedded Partner
http://GuruCE.com
Consultancy, training and development services.

luthfi wrote:
Hi,

I have a requirement to hardened a file writing routine to removable media
where it must handle a case when user remove the media during the writing
process. I have registered for device notification with BLOCK_DRIVER_GUID to
detect the device removal and to stop the writing process when this
notification is received.

It work most of the time, but sometimes especially with SD card the
application caught an exception first before the device send the removal
notification. During this exception when our application check for the
removable media folder existence the method will return true as if the media
was still attached to the device.

Is there any way to shorten the timeout for media dismount before the OS
really removes the folder name from the file system? So when a user remove a
media the folder name should also immediately removed from the file system?

Thanks,

Luthfi

.



Relevant Pages

  • Re: Removable media dismount time out
    ... Microsoft Embedded Partner ... Michel Verhagen (eMVP) wrote: ... I have a requirement to hardened a file writing routine to removable media ...
    (microsoft.public.windowsce.platbuilder)
  • Re: file permission error
    ... I would still recommend NEVER to save directly to any removable media. ... because doing so usually results in file corruption ... there is no way of knowing how much space the temporary files will use. ...
    (microsoft.public.word.application.errors)
  • Re: Removable media dismount time out
    ... Microsoft Embedded Partner ... Consultancy, training and development services. ... "Michel Verhagen (eMVP)" wrote: ... I have a requirement to hardened a file writing routine to removable media ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Reattach/redetect allways connected umass device - is it possible ?
    ... >> From a desktop user experience point of view, it is rather nice to get ... >> continously polling said media. ... > There's no reason why the kernel couldn't regularly poll removable media ... I was not thinking of contents exactly; more of the desktop user ...
    (freebsd-current)
  • Re: Playing From an SD Card
    ... 1- A file manager should be easily able to handle removable media. ... So there are many examples outside of WMP where this function is done well. ...
    (microsoft.public.windowsmedia.player)

Loading