Re: Removable media dismount time out
- From: "Michel Verhagen (eMVP)" <michel@xxxxxxxxxx>
- Date: Thu, 20 Nov 2008 22:41:29 +1300
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: luthfi
- Re: Removable media dismount time out
- References:
- Removable media dismount time out
- From: luthfi
- Re: Removable media dismount time out
- From: Michel Verhagen (eMVP)
- Removable media dismount time out
- Prev by Date: Re: Removable media dismount time out
- Next by Date: CE6.0 VMProcessPageFault Error
- Previous by thread: Re: Removable media dismount time out
- Next by thread: Re: Removable media dismount time out
- Index(es):
Relevant Pages
|