Hive-based Registry Setup (Windows Embedded CE 6.0)英文

本文详细介绍了如何设置基于Hive的注册表,包括添加Hive注册表目录项到操作系统设计,验证平台.reg文件中的注册表设置,以及理解与注册表操作相关的系统Hive位置、用户配置文件路径和Flags值的含义。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

1/6/2010

With the hive-based registry, you can preserve registry data without modifying the startup or shutdown process. The hive-based registry is available for use with any file system.

The first step in setting up the hive-based registry is to add the hive-based registry catalog item to your OS design.

The largest setup task involves preparing the proper registry settings. These settings govern the target device boot sequence.

Verify the following registry settings in the Platform.reg file:

[HKEY_LOCAL_MACHINE\init\BootVars]
   "SystemHive"="<your system hive location>"
   "ProfileDir"="<your user hive location>"
   "Flags"=dword:<your value>
  • SystemHive is the location and name of the system hive file. Do not include the name of the file system on which the file is stored. The system will determine which file system to use based on other registry settings. Typically, this is a simple location such as "System.hv" or "Documents and Settings\System.hv".
  • ProfileDir indicates the location of the user profile file. Typically, this is a simple location such as "System.hv" or "Documents and Settings\System.hv".
  • The Flags value indicates in which phase of startup Storage Manager or Device Manager starts, and whether the registry affected is a hive-based registry or a registry in external ROM. This value replaces Start DevMgr. It offers more precise control without sacrificing the previous functionality. For example, "Flags"=dword:3.
    In this example, 3 indicates the sum of bits 1 and 2, is equivalent to the following:
    "Start DevMgr"=dword:1
    
    The following table shows possible values for Flags:

Flag bit settingDescription

0x00000001

Starts Storage Manager in phase one of startup for hive-based registry

0x00000002

Starts Device Manager in phase one of startup for hive-based registry

0x00000004

Starts Storage Manager in phase one of startup for registry in external ROM, such as BINFS

0x00000008

Starts Device Manager in phase one of startup for registry in external ROM, such as BINFS

If no flags are set, Device Manager and Storage Manager do not start, and the hive is stored in the object store. Because hives that are stored in the object store are lost on cold boot, hives are typically stored outside RAM, making it necessary to start Device Manager.

The value of DefaultUser, a REG_SZ value in HKEY_LOCAL_MACHINE\init\BootVars, determines the default user hive to load. DefaultUser is set to the name of the user to use as the default profile when the system starts. If it is an existing user, the appropriate user hive is loaded. If it is a new user, the user profile is created.

OEMs can set the following registry value:

[HKEY_LOCAL_MACHINE\init\BootVars]
   "DefaultUser"="<username>"

For more information about how to log on other users, see User Profile Setup and User Profile Storage.

For more information about using the hive-based registry, see Implementing the Hive-Based Registry.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值