HIVE Registry

系统 2381 0

HIVE registry is useful and easy to use feature, to enable it, we need first add the HIVE registry feature from CATALOG
into the OSDesign file. then add registry as following listed.

The following is the setting in my platform using FLASH to store the registry.

There're some difference in every version.
1. in CE5.0 and later, DDK_GetWindowInfo can't be called in the flash driver.
if it's called, the system crashed in CE5.0 due to a data abort, it can't read the values in CE6.
2. The registry settings in CE5 are the same as CE4.2.
But there're some difference with CE6, Please look at the comment in the following paragraph.

 


; @CESYSGEN IF FILESYS_FSREGHIVE
; HIVE BOOT SECTION ; this line is mandatory for every verion, it indicates the start of HIVE registry setting.

[HKEY_LOCAL_MACHINE\init\BootVars]
"SystemHive"=" \\norflash\\Registry\\system.hv " ; in CE6, it's a full path, but in CE4.2 and 5.0, norflash is not needed.
"DefaultUser"="default"
"Flags"=dword:3


[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\NORFlash] ;block device driver to store registry
"Dll"="flash.dll"
"Order"=dword:0
"Prefix"="DSK"
"Ioctl"=dword:4
"Profile"="MSFlash"
"Flags"=dword:1000 ;must to set to this value
"IClass"="{A4E7EDDA-E575-4252-9D6B-4195D48BB865}"

 

[HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\MSFlash]
"Name"="Ep93xx NOR Flash"
"Folder"="NORFlash" ; the value should be the same as the first word of "systemHive" in CE6
"AutoMount"=dword:1
"AutoPart"=dword:1
"AutoFormat"=dword:1

[HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\MSFlash\FATFS]
;"MountFlags"=dword:2 ;uses this setting in CE4.2
"EnableCache"=dword:0
"MountBootable"=dword:1 ;uses this setting in CE6

; END HIVE BOOT SECTION ; this line is mandatory for every verion, it indicates the END of HIVE registry setting.

; @CESYSGEN ENDIF FILESYS_FSREGHIVE


NOTE

HIVE registry can work in NOR flash, but can't work in HARD DISK in WINCE6.0.

HIVE is called after hard disk driver is loaded while the file system is still not mounted, so the directory "HARD DISK" still not appears, as a result, HIVE creates a directory named "hard disk", and stores the registry to the directory.
but in nor flash, it does not occur.


本文来自CSDN博客,转载请标明出处: http://blog.csdn.net/Vichard/archive/2009/08/29/4497671.aspx

HIVE Registry


更多文章、技术交流、商务合作、联系博主

微信扫码或搜索:z360901061

微信扫一扫加我为好友

QQ号联系: 360901061

您的支持是博主写作最大的动力,如果您喜欢我的文章,感觉我的文章对您有帮助,请用微信扫描下面二维码支持博主2元、5元、10元、20元等您想捐的金额吧,狠狠点击下面给点支持吧,站长非常感激您!手机微信长按不能支付解决办法:请将微信支付二维码保存到相册,切换到微信,然后点击微信右上角扫一扫功能,选择支付二维码完成支付。

【本文对您有帮助就好】

您的支持是博主写作最大的动力,如果您喜欢我的文章,感觉我的文章对您有帮助,请用微信扫描上面二维码支持博主2元、5元、10元、自定义金额等您想捐的金额吧,站长会非常 感谢您的哦!!!

发表我的评论
最新评论 总共0条评论