Re: Removable media dismount time out
- From: luthfi <luthfi@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 20 Nov 2008 04:38:01 -0800
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
- Follow-Ups:
- Re: Removable media dismount time out
- From: Michel Verhagen (eMVP)
- Re: Removable media dismount time out
- References:
- Removable media dismount time out
- From: luthfi
- Re: Removable media dismount time out
- From: Michel Verhagen (eMVP)
- Re: Removable media dismount time out
- From: Michel Verhagen (eMVP)
- Removable media dismount time out
- Prev by Date: Re: FlashMDD & Nand MLC ECC
- Next by Date: WinCE 6.0 R2 bios bootloader support fat32
- Previous by thread: Re: Removable media dismount time out
- Next by thread: Re: Removable media dismount time out
- Index(es):
Relevant Pages
|
Loading