Hive registry的使用设置
2008-04-24 14:02
691 查看
To use the hive-based registry Add the Hive-based Registry Catalog item to your OS design. Verify the following registry settings in the Platform.reg file for your OS design.
Set the following registry value in the Platform.reg file for your OS design to determine the default hive to load.
Set the following flag bit on each driver that is loaded during the first boot phase.
Set the MountFlags registry value equal to DWORD:2. Set this value on the Storage Manager profile of the file system driver for the medium that contains the registry. This indicates that the file system contains the following registry key.
[HKEY_LOCAL_MACHINE/init/BootVars] "SystemHive"="<your system hive location>" "Start DevMgr"=dword:<your value>For more information about configuring the registry to support the hive-based registry, see Hive-based Registry Setup.
Set the following registry value in the Platform.reg file for your OS design to determine the default hive to load.
[HKEY_LOCAL_MACHINE/init/BootVars] "DefaultUser"="<username>"Verify that all registry entries necessary for starting drivers in the first boot phase are wrapped in the comments. The following code example shows typical comments.
; HIVE BOOT SECTION<your registry settings>; END HIVE BOOT SECTIONThese tags are commands that tell the ROM registry builder to add the entries to the boot hive.
Set the following flag bit on each driver that is loaded during the first boot phase.
[HKEY_LOCAL_MACHINE/Drivers/...] "Flags"=dword:1000The flags are a bitmask to OR with any existing settings. This flag tells the Device Manager to load your driver in the first boot phase with the boot registry, and not to load it a second time in the second boot phase with the system registry. It prevents the driver from being started twice.
Set the MountFlags registry value equal to DWORD:2. Set this value on the Storage Manager profile of the file system driver for the medium that contains the registry. This indicates that the file system contains the following registry key.
[HKEY_LOCAL_MACHINE/System/StorageManager/Profiles/<ProfileName>/<FileSystemName>] "MountFlags"=dword:2Decide whether a registry flushing mechanism is necessary. Outstanding registry data will be flushed on a suspend or resume cycle and any time the system goes through a software shutdown. However, data may be lost if power is suddenly removed. If a software shutdown is not an option, you may need to create a thread that periodically flushes data. To ensure that data is not lost, call RegFlushKey. This will flush any unsaved changes in the hive to the persistent file. It will not damage anything to call RegFlushKey when no data has changed; in that case, the file will not be touched. RegFlushKey should be called on both the system hive HKEY_LOCAL_MACHINE and the user hive HKEY_CURRENT_USER.
相关文章推荐
- npm proxy设置网络代理 并使用taobao registry
- npm安装使用淘宝代理的方法(设置registry参数)
- Hive中压缩设置 和 Hive文件存储格式及使用
- 详解TCC89x的Hive Registry设置
- 如何使用HIVE-based Registry
- 详解TCC89x的Hive Registry设置
- 详解TCC89x的Hive Registry设置
- 使用Windows API获取和改变当前显示设置
- 使用扩展屏时设置鼠标切换到另一屏幕的方向
- 在struts中使用ICacheKeyProvider设置图片缓存
- 使用公共 Registry - 每天5分钟玩转 Docker 容器技术(19)
- 如何使用组策略或注册表设置配置自动更新
- Android横竖屏的设置和使用
- 思考:【滤镜仅在IE有效!】在style使用filter(滤镜)设置水平翻转(flipH)和竖直翻转(flipV)
- C#使用NewtonSoft进行Json序列化,设置字段首字母小写方法
- [Shader技巧]unity中使用visual studio编写shader并设置代码高亮
- 使用WinDbg分析dmp文件时symbols file path设置
- 使用u32过滤器设置基于mac地址的下载限制
- UICollectionView使用storyBoard完成设置自动布局,并附带简单选择功能
- 使用SecureCRT对Linux vim进行颜色设置【可用的.vimrc文件内容】