wince6.0下DeviceEmulator 基於共享資料夾的hive實現

simplaman發表於2008-01-13

從wince6.0開始,登錄檔預設就 是Hive based.不過預設情況下Hive會存放在Ram Filesys中,掉電後就不復存在.

修改登錄檔即可將Hive存放到DeviceEmulator的共享資料夾中,修改部分的登錄檔如下(粗體部分為新增內容)

; HIVE BOOT SECTION
; @CESYSGEN IF FILESYS_FSREGHIVE
[HKEY_LOCAL_MACHINEinitBootVars]
; "DefaultUser"=""
; "Start DevMgr"=dword:1
  "RegistryFlags"=dword:1
  "Flags"=dword:F
; @CESYSGEN ENDIF
[HKEY_LOCAL_MACHINESystemStorageManagerAutoLoadObjectStore]
  "MountAsBootable"=dword:0

[HKEY_LOCAL_MACHINEDriversBuiltInEMS]
  "Irq"=dword:27
  "Prefix"="EMS"
  "Dll"="emulserv.dll"
  "Order"=dword:0
  "BootPhase"=dword:0

; Default values for EFS. These can be overridden per profile
[HKEY_LOCAL_MACHINESystemStorageManagerVCE]
  "FriendlyName"="VCE FileSystem"
  "Dll"="VCEFSD.dll"
  "Paging"=dword:1
  "BootPhase"=dword:0

[HKEY_LOCAL_MACHINESystemStorageManagerProfilesVCEFSD]
  "Name"="EMULATOR SHARED FOLDER FS"
IF IMGPPC
  "Folder"="SharedStorage"
ENDIF ; IMGPPC
IF IMGPPC !
  "Folder"="Storage"
ENDIF ; IMGPPC !
  "DefaultFileSystem"="VCE"
  "PartitionDriver"=""
  "BootPhase"=dword:0
  "MountAsBootable"=dword:1

; Override default partition table with an empty one, so DefaultFileSystem is used
[HKEY_LOCAL_MACHINESystemStorageManagerProfilesVCEFSDPartitionTable]

[HKEY_LOCAL_MACHINEDriversEMULSERV]
  "Dll"="EMULSERV.DLL"
  "Prefix"="DSK"
  "Profile"="VCEFSD"
  "BootPhase"=dword:0
  ; Indicate we are a power manageable interface
  "IClass"=multi_sz:"{A32942B7-920C-486b-B0E6-92A702A99B35}","{A4E7EDDA-E575-4252-9D6B-4195D48BB865}"

[HKEY_LOCAL_MACHINESystemStorageManager]
  "PNPUnloadDelay"=dword:0

; END HIVE BOOT SECTION

[@more@]

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/116625/viewspace-997215/,如需轉載,請註明出處,否則將追究法律責任。

相關文章