http://blog.csdn.net/slyzhang/archive/2006/08/10/1046993.aspx(转自)
直想实现Wince4.2下的 S3C2440 的 Hive-based的 保存, 几经周折,没有查出来相关资料,也许只有在源码中可以找到思路,以下给出我在网上找到的可以实现的方法,放在这里供大家使用。
2440 在5.0下的注册表保存可以参考这个:http://blog.csdn.net/fredzeng
而在4.2下的保存则参考:http://www.xsgps.com/BBS/forum_posts.asp?TID=7
我也是参考了这个才得以实现,注册表配置为:
; HIVE BOOT SECTION
[HKEY_LOCAL_MACHINE\init\BootVars]
"SYSTEMHIVE"="system.hv"
"Start DevMgr"=dword:1
"DefaultUser"="default"
"Flags"=dword:3
"RegistryFlags"=dword:1
[HKEY_LOCAL_MACHINE\System\StorageManager\AutoLoad\FlashDrv]
; "DriverPath"="Drivers\\BlockDevice\\FlashDrv"
; "LoadFlags"=dword:1
; "MountFlags"=dword:11
; "BootPhase"=dword:0
; "Flags"=dword:1000
"DriverPath"="Drivers\\BlockDevice\\FlashDrv"
"LoadFlags"=dword:1
"MountFlags"=dword:11
"BootPhase"=dword:1
"Flags"=dword:1000 ;lieal modify
[HKEY_LOCAL_MACHINE\Drivers\BlockDevice\FlashDrv]
"Prefix"="DSK"
"Dll"="FLASHDRV.dll"
"Order"=dword:0
"Ioctl"=dword:4
"Profile"="FlashDrv"
"FriendlyName"="MS Flash Driver"
"MountFlags"=dword:11
"BootPhase"=dword:0
"Flags"=dword:1000 ;lieal modify
; Bind BINFS to the block driver
[HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\FlashDrv]
DefaultFileSystem"="BINFS"
"PartitionDriver"="mspart.dll"
"AutoMount"=dword:1
"AutoPart"=dword:1
;"MountFlags"=dword:2 ;11 to 2 lieal modify
"Folder"="ResidentFlash"
"Name"="Microsoft Flash Disk"
"BootPhase"=dword:0
"Flags"=dword:1000 ;lieal modify
[HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\FlashDrv\FATFS]
"FriendlyName"="FAT FileSystem"
"Dll"="fatfsd.dll"
"Flags"=dword:00280014
"Paging"=dword:1
"CacheSize"=dword:0
"EnableCacheWarm"=dword:0
"EnableCache"=dword:1
"MountFlags"=dword:2
; END HIVE BOOT SECTION
文章评论(0条评论)
登录后参与讨论