wince 快速挂载SD卡及U盘
来源:互联网 发布:主流云计算平台 编辑:程序博客网 时间:2024/05/18 00:33
作者:Apollo5520
转自:http://blog.chinaunix.net/uid-8087110-id-1989039.html
[HKEY_LOCAL_MACHINE\System\StorageManager\FATFS]
"MountFlags"=dword:0 ;
"Flags"=dword:14 ;
具体的控制是Flags项,这个分支定义的是整个FATFS的参数,如果想进行分类进行不同的定义,则需要修改相关注册表分支,例如,想定义flash自动扫描则添加定义如下
[HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\FlashDrv\FATFS]
"MountFlags"=dword:2
"Flags"=dword:10
;在Profiles\FlashDrv添加FATFS分支定义falsh上FATFS文件系统的相关参数,其他的sd卡,U盘等也可分别进行定义
以上两个分支可同时存在,进行详细的的定义。
关于FATFS相关参赛的定义如下:(http://msdn.microsoft.com/en-us/library/ms885403.aspx)
The file allocation table (FAT) file system retrieves driver specific settings from the registry.
The following table shows the registry settings for the FAT file system stored inHKEY_LOCAL_MACHINE\System\StorageManager\FATFS.
The default value is 64 for TFAT and 32 for FAT.
CacheSize: REG_DWORDIndicates the size of the disk cache, in number of sectors. This value must be a power of 2 and at least 16 sectors. If set to zero, FATFS will determine the best cache size to use.For more information, see CacheSize registry subkey.
CodePage: REG_DWORDOverrides CP_OEMCP in all character conversions.Dll: REG_SZSpecifies the name of the file system DLL.EnableCache: REG_DWORDControls caching.- 0 - Disables caching
- 1 - Enables caching
For more information, see Flags registry subkey.
FormatTfat: REG_DWORDFormats the volume as TFAT on auto-format or through IOCTL_DISK_FORMAT_VOLUME.FriendlyName: REG_SZSpecifies a friendly name for the file system.MountLabel: REG_DWORDPulls the volume label and uses it as a mount point.Paging: REG_DWORDControls paging.- 0 - Disables paging
- 1 - Enables paging
Flags registry subkey
The following table shows the available values you can set for the Flags registry subkey; set Flags to a combination of these values.
CacheSize registry subkey
The CacheSize registry subkey is a hexadecimal number of sectors to cache. This has to be a power of two. The following table shows valid numbers for theCacheSize registry subkey.
2048
Example
The following registry key example shows the location of the Flags andCacheSize registry subkey values.
[HKEY_LOCAL_MACHINE\System\StorageManager\FATFS] "Flags": dword:00000024 "CacheSize" = dword:400
If CacheSize is set to zero, the cache size will be set automatically.
http://www.vckbase.com/document/viewdoc/?id=1267
对”Flags”值的描述如下(C:\WINCE500\PRIVATE\WINCEOS\COREOS\FSD\FATFS\fatfs.h):
上面把FLAGS定义为 14,也就是备份FAT表、不自动扫描卷标。这样8G的SD卡,3秒就可以出现盘符了。
原创文章,转载请注明:转载自 风雨无阻博客(http://Apollo5520.cublog.cn)
本文链接地址:http://blog.chinaunix.net/u3/105764/showart_2114352.html
- wince 快速挂载SD卡及U盘
- wince 快速挂载SD卡及U盘
- wince 快速挂载SD卡及U盘
- wince 快速挂载SD卡及U盘
- wince 快速挂载SD卡及U盘
- wince 快速挂载SD卡及U盘
- wince 快速挂载SD卡及U盘
- linux-3.6.6移植usbhost(u盘)、sd卡及自动挂载
- linux-3.6.6移植usbhost(u盘)、sd卡及自动挂载
- WinCE 应用程序开机自动运行的方法(flash,U盘,SD卡都行)
- 修改wince系统识别的SD卡和U盘的名字
- android2.3 SD卡,U盘自动挂载
- android2.3 SD卡,U盘自动挂载
- Linux下给挂载U盘或者SD卡
- android2.3 SD卡、U盘自动挂载
- linux中自动挂载、卸载SD卡/u盘
- Linux下给挂载U盘或者SD卡
- Linux下给挂载U盘或者SD卡
- IBM Minus One
- 排列平方数 若干不同的数字,排列组合后能产生多少个平方数? 下面的代码解决了这个问题。
- WinCE的I2C驱动程序设计
- WinCE中RTC驱动开发介绍
- UVa 11536 - Smallest Sub-Array
- wince 快速挂载SD卡及U盘
- vector,list,map的比较
- 一篇技术置顶帖引起的思考
- WinCE Display驱动开发介绍
- linux下python学习笔记(十四)之备份实例2
- Communications link failure问题,求指教!!
- WinCE下Touch Panel驱动介绍
- WinCE BSP中打印信息的实现介绍
- WinCE中RTC驱动开发介绍