一、HIVE 注册表功能
[HKEY_LOCAL_MACHINE/init/BootVars]
"SystemHive"="Documents and Settings//System.hv"
"ProfileDir"="Documents and Settings"
"DefaultUser"="default"
"Start DevMgr"=dword:1
"Flags"=dword:3
"RegistryFlags"=dword:1
说明:
SystemHiv
系统HIVE文件的保存路径与文件名
ProfileDir
用户配置文件保存路径
DefaultUser
默认加载的用户HIVE文件
Start DevMgr
启动时加载设备管理器
Flags
这个值替代Start DevMgr,可以在包括Start DevMgr的功能前提下提供更精确的控制
RegistryFlags
在调用 RegCloseKey函数时自动调用RegFlushKey函数,用于自动保存注册表
设备管理器会加载 HKEY_LOCAL_MACHINE/Drivers/BuiltIn 下的所有设备驱动
二、存储管理
[HKEY_LOCAL_MACHINE/System/StorageManager/Profiles]
"AutoMount"=dword:1
"AutoPart"=dword:0
"AutoFormat"=dword:0
"MountFlags"=dword:0
"DefaultFileSystem"="FATFS"
"PartitionDriver"="mspart.dll"
"Folder"="Mounted Volume"
[HKEY_LOCAL_MACHINE/System/StorageManager/Profiles/SMFLASH]
"DefaultFileSystem"="BINFS"
"AutoPart"=dword:1
"AutoMount"=dword:1
"PartitionDriver"="mspart.dll"
"Name"="Microsoft Flash Disk"
"Folder"="ResidentFlash"
"BootPhase"=dword:0
"AutoFormat"=dword:1
[HKEY_LOCAL_MACHINE/System/StorageManager/Profiles/HDProfile]
"Name"="IDE Hard Disk Drive"
"Folder"="Hard Disk"
"AutoMount"=dword:1
"DefaultFileSystem"="EXFAT"
"PartitionDriver"="mspart.dll"
[HKEY_LOCAL_MACHINE/System/StorageManager/Profiles/HDProfile/FATFS] FATFS部分的定义
"EnableCacheWarm"=dword:0
[HKEY_LOCAL_MACHINE/System/StorageManager/Profiles/HDProfile/PartitionTable]
"07"="" (该值表示对于NTFS类型的分区,不加强任何文件系统)
[HKEY_LOCAL_MACHINE/System/StorageManager/Profiles/SDMMC]
"Name"="SD MMC device"
"Folder"="SD Card"
该分支可以的定义如下
三、文件系统
1、Autoload 设置
[HKEY_LOCAL_MACHINE/System/StorageManager/Autoload/Relfsd]
"Dll"="relfsd.dll"
"Paging"=dword:1
"LoadFlags"= dword:1
2、文件系统设置
[HKEY_LOCAL_MACHINE/System/StorageManager/FATFS];总定义
"FriendlyName"="TFAT FileSystem"
"Flags"=dword:00000014
"Dll"="exfat.dll"
"CacheSize"=dword:0
[HKEY_LOCAL_MACHINE/System/StorageManager/Profiles/SMFLASH/FATFS];详细定义
"Flags"=dword:14
"FormatTfat"=dword:1
“MountAsBootable”= dword:1
"CheckForFormat"=dword:1
CheckForFormat
对于Flash Media Drivers(FMD)来说,设置这个标志位,则会调用 IOCTL_HAL_QUERY_FORMAT_PARTITION这个ioctl
Flags
CacheSize
添加HIVE 注册表支持
1、 添加 hive-based registry catalog 组件
2、 添加
[HKEY_LOCAL_MACHINE/init/BootVars]
"SystemHive"="Documents and Settings//System.hv"
"ProfileDir"="Documents and Settings"
"DefaultUser"="default"
"Start DevMgr"=dword:1
"Flags"=dword:3
"RegistryFlags"=dword:1
3、 在 each driver that is loaded during the first phase of startup
[HKEY_LOCAL_MACHINE/Drivers/ 相关项下添加( 表示此驱动程序只加载一次 )
"Flags"=dword:1000
4、
[HKEY_LOCAL_MACHINE/System/StorageManager/Profiles/<ProfileName>/<FileSystemName>]
下添加
"MountAsBootable"=dword:1
[HKEY_LOCAL_MACHINE/init/BootVars]
"SystemHive"="Documents and Settings//System.hv"
"ProfileDir"="Documents and Settings"
"DefaultUser"="default"
"Start DevMgr"=dword:1
"Flags"=dword:3
"RegistryFlags"=dword:1
说明:
SystemHiv
系统HIVE文件的保存路径与文件名
ProfileDir
用户配置文件保存路径
DefaultUser
默认加载的用户HIVE文件
Start DevMgr
启动时加载设备管理器
Flags
这个值替代Start DevMgr,可以在包括Start DevMgr的功能前提下提供更精确的控制
RegistryFlags
在调用 RegCloseKey函数时自动调用RegFlushKey函数,用于自动保存注册表
设备管理器会加载 HKEY_LOCAL_MACHINE/Drivers/BuiltIn 下的所有设备驱动
二、存储管理
[HKEY_LOCAL_MACHINE/System/StorageManager/Profiles]
"AutoMount"=dword:1
"AutoPart"=dword:0
"AutoFormat"=dword:0
"MountFlags"=dword:0
"DefaultFileSystem"="FATFS"
"PartitionDriver"="mspart.dll"
"Folder"="Mounted Volume"
[HKEY_LOCAL_MACHINE/System/StorageManager/Profiles/SMFLASH]
"DefaultFileSystem"="BINFS"
"AutoPart"=dword:1
"AutoMount"=dword:1
"PartitionDriver"="mspart.dll"
"Name"="Microsoft Flash Disk"
"Folder"="ResidentFlash"
"BootPhase"=dword:0
"AutoFormat"=dword:1
[HKEY_LOCAL_MACHINE/System/StorageManager/Profiles/HDProfile]
"Name"="IDE Hard Disk Drive"
"Folder"="Hard Disk"
"AutoMount"=dword:1
"DefaultFileSystem"="EXFAT"
"PartitionDriver"="mspart.dll"
[HKEY_LOCAL_MACHINE/System/StorageManager/Profiles/HDProfile/FATFS] FATFS部分的定义
"EnableCacheWarm"=dword:0
[HKEY_LOCAL_MACHINE/System/StorageManager/Profiles/HDProfile/PartitionTable]
"07"="" (该值表示对于NTFS类型的分区,不加强任何文件系统)
[HKEY_LOCAL_MACHINE/System/StorageManager/Profiles/SDMMC]
"Name"="SD MMC device"
"Folder"="SD Card"
该分支可以的定义如下
三、文件系统
1、Autoload 设置
[HKEY_LOCAL_MACHINE/System/StorageManager/Autoload/Relfsd]
"Dll"="relfsd.dll"
"Paging"=dword:1
"LoadFlags"= dword:1
[HKEY_LOCAL_MACHINE/System/StorageManager/FATFS];总定义
"FriendlyName"="TFAT FileSystem"
"Flags"=dword:00000014
"Dll"="exfat.dll"
"CacheSize"=dword:0
[HKEY_LOCAL_MACHINE/System/StorageManager/Profiles/SMFLASH/FATFS];详细定义
"Flags"=dword:14
"FormatTfat"=dword:1
“MountAsBootable”= dword:1
"CheckForFormat"=dword:1
CheckForFormat
对于Flash Media Drivers(FMD)来说,设置这个标志位,则会调用 IOCTL_HAL_QUERY_FORMAT_PARTITION这个ioctl
Flags
CacheSize
添加HIVE 注册表支持
1、 添加 hive-based registry catalog 组件
2、 添加
[HKEY_LOCAL_MACHINE/init/BootVars]
"SystemHive"="Documents and Settings//System.hv"
"ProfileDir"="Documents and Settings"
"DefaultUser"="default"
"Start DevMgr"=dword:1
"Flags"=dword:3
"RegistryFlags"=dword:1
3、 在 each driver that is loaded during the first phase of startup
[HKEY_LOCAL_MACHINE/Drivers/ 相关项下添加( 表示此驱动程序只加载一次 )
"Flags"=dword:1000
4、
[HKEY_LOCAL_MACHINE/System/StorageManager/Profiles/<ProfileName>/<FileSystemName>]
下添加
"MountAsBootable"=dword:1