2013年10月18日 星期五

WinCE使用Hive-based Registry

  1. 增加 hive-based registry component
  2. 設定hive-based registry
    [HKEY_LOCAL_MACHINE\init\BootVars]
    "SYSTEMHIVE"="Registry\\system.hv" ; hive-based 檔案名稱
    "PROFILEDIR"="Registry" ; hive-based 檔案目錄
    "Start DevMgr"=dword:1
Example :
Implement hive-based registry with Hard Disk on NS platform.

; HIVE BOOT SECTION
[HKEY_LOCAL_MACHINE\init\BootVars]
"SYSTEMHIVE"="Documents and Settings\\system.hv"
"PROFILEDIR"="Documents and Settings"
"Start DevMgr"=dword:1
; END HIVE BOOT SECTION

; HIVE BOOT SECTION
[HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\HDProfile]
"MountFlags"=dword:2

[$(PCI_BUS_ROOT)\Template\GeodeIDE]
"Flags"=dword:1000 ; Set the bit to load during the first boot phase

[$(PCI_BUS_ROOT)\Template\GeodeIDE\Device0]
"Flags"=dword:1000

[LOCAL_MACHINE\Drivers\BuiltIn\PCI\Template\GeodeIDE\Device0]
"Prefix"="DSK"
"Dll"="atapi.dll"
"Settings"=dword:A ; Setting A to disable DMA
"DeviceId"=dword:0
"Ioctl"=dword:4
"IClass"=multi_sz:"{A4E7EDDA-E575-4252-9D6B-4195D48BB865}"
; END HIVE BOOT SECTION

沒有留言:

張貼留言