Detailed description of the wince Registry File platform. Reg

Source: Internet
Author: User
Tags autoload builtin

 

This article from the csdn blog, reproduced please indicate the source: http://blog.csdn.net/t_larry/archive/2010/01/17/5201290.aspx

 

I. Hive registry function
[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
 
Note:
Systemhiv
Path and file name of hive files in the system
 
Profiledir
Path for saving the user configuration file
 
Defaultuser
User hive file loaded by default
 
Start devmgr
Load Device Manager at startup
 
Flags
This value replaces start devmgr and provides more precise control on the premise of including the start devmgr function.
Flag bit Setting Description
0x00000001 starts Storage Manager in phase one of startup for hive-based registry
(To implement hive, load the Storage Manager at startup)
0x00000002 starts Device Manager in phase one of startup for hive-based registry
(To implement hive, load the Device Manager at startup)
0x00000004 starts Storage Manager in phase one of startup for registry in external Rom, such as binfs
(To register extended Rom such as binfs, load the Storage Manager at startup)
0x00000008 starts Device Manager in phase one of startup for registry in external Rom, such as binfs
(To register extended Rom such as binfs, load the Device Manager at startup)

 
Registryflags
The regflushkey function is automatically called when the regclosekey function is called to automatically save the registry.
 
 
The Device Manager loads all device drivers under HKEY_LOCAL_MACHINE/Drivers/builtin.
 
 
 
Ii. Storage Management
[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"
 
Definition of [HKEY_LOCAL_MACHINE/system/storagemanager/profiles/hdprofile/fatfs] fatfs
"Enablecachewarm" = DWORD: 0
 
[HKEY_LOCAL_MACHINE/system/storagemanager/profiles/hdprofile/partitiontable]
"07" = "" (This value indicates that NTFS-type partitions do not enhance any file system)
 
[HKEY_LOCAL_MACHINE/system/storagemanager/profiles/sdmmc]
"Name" = "sd mmc device"
"Folder" = "SD card"
 
The branch can be defined as follows:
Flag description
"AutoFormat" whether to automatically format (1-Yes, 0-No)
"Automount": automatic mounting (1-Yes, 0-No)
"Autopart": automatic partitioning (1-Yes, 0-No)
"Defaultfilesystem" identifies unknown Partition Table IDS as partition types by default, such as binfs
"Folder" Mount directory name
"Mountflags" has been abolished since Win CE 5.0. It is used to identify the partition Mount mode.
"Name" storeinfo (Storage Manager) struct. szstorename member variable value
"Partitiondriver": Default loaded partition driver

 
 
Iii. File System
1. autoload settings
[HKEY_LOCAL_MACHINE/system/storagemanager/autoload/relfsd]
"DLL" = "relfsd. dll"
"Paging" = DWORD: 1
"Loadflags" = DWORD: 1
Value: type description
Loadflags: REG_DWORD controls how to load the file system.
1-The file system needs to be automatically loaded at the 0 or 1 phase of startup.
2-asynchronous loading in another thread. It is only supported in Phase 2 of startup (default value)
Bootphase: REG_DWORD control is used to verify the file system loading.
0-load before local initialization.
1-load after local initialization, before the registry function is loaded.
2-after the registry function is loaded.
DLL: REG_SZ: fsd dll file
Order: REG_DWORD specifies the loading sequence. The smaller the value, the more loaded.

2. File System settings
[HKEY_LOCAL_MACHINE/system/storagemanager/fatfs]; general definition
"Friendlyname" = "tfat filesystem"
"Flags" = DWORD: 00000014
"DLL" = "exfat. dll"
"Cachesize" = DWORD: 0
 
[HKEY_LOCAL_MACHINE/system/storagemanager/profiles/smflash/fatfs]; detailed definition
"Flags" = DWORD: 14
"Formattfat" = DWORD: 1
"Mountasbootable" = DWORD: 1
"Checkforformat" = DWORD: 1
 
 
Registry Value: type description
Buffersize: the buffer size of REG_DWORD.
The default value is 64 for tfat 32 for fat.
Cachesize: the disk cache size of REG_DWORD is in the unit of slices. If it is set to 0, the best cache is automatically used.
CodePage: REG_DWORD overrides cp_oemcp in all character conversions.
DLL: REG_SZ DLL file name.
Enablecache: whether to enable cache in REG_DWORD
0-Disable 1-enable
Enablecachewarm: REG_DWORD enables pre-warming of the cache.
Flags: REG_DWORD can be found in the table below.
Formattfat: REG_DWORD format to tfat
Friendlyname: REG_SZ specifies a friendly name for the file system.
Mountlabel: REG_DWORD volume name
Paging: REG_DWORD pagination 0-Disable 1-enable.
Util: REG_SZ specifies the DLL name of utility to do format and scan

 
Checkforformat
For Flash Media drivers (FMD), setting this flag will call ioctl_hal_query_format_partition IOCTL
 
 
Flag description
"Mountflags" abolished since Win CE 5.0
"Mounthidden" Hide mounting. 1-Enable. Replace "mountflags" = DWORD: 1
Whether "mountasbootable" includes the registry. The first mounted partition storage hive registry. 1-Enabled
Replace "mountflags" = DWORD: 2
"Mountasroot" is mounted as the root file system. 1-Enable. Replace "mountflags" = DWORD: 4
"Mountasrom" mounting to extended ROM file system. 1-Enable. Replace "mountflags" = DWORD: 10
"Mountsystem" all files and directories are used as system files. 1-Enable. Replace "mountflags" = DWORD: 20
"Mountpermanent" This volume cannot be detached. 1-Enable. Replace "mountflags" = DWORD: 40
"Mountasnetwork" specifies that this volume label receives all UNC paths. 1-enabled.
Replace "mountflags" = DWORD: 80

 
Flags
 
Flag value description
Fatfs_update_access 0x00000001 update access time.
Fatfs_disable_log 0x00000002 disable event logs.
Fatfs_disable_autoscan 0x00000004 disable automatic scanning.
Fatfs_verify_writes 0x00000008 write verification.
Fatfs_enable_backup_fat 0x00000010 back up the fat table.
Fatfs_force_writethrough 0x00000020 allows the system to directly write data in any buffer zone to the disk, which will speed up data writing to the disk.
Fatfs_disable_autoformat 0x00000040 disable automatic formatting of unformatted partitions.
Fatfs_wfws_nowritethru 0x00010000 disables write through on the writefilewithseek function. improves memory-mapped file performance.

Fatfs_disable_format 0x00020000 disable formatting.
Fatfs_trans_data 0x00040000 write operation transfers data at the same time.

 
Cachesize
Registry entry number of sectors cache in kilobytes (KB)
2 2 1
4 4 2
8 8 4
10 16 8
20 16 32
40 64 32
80 128 64
100 256 128
200 512 256
400 1024 512
800 2048 1024
1000 4096 2048

 
 
 
Add hive registry support
 
1. Add the hive-based registry catalog component
2. Add
[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. In the each driver that is loaded during the first phase of startup
[Add HKEY_LOCAL_MACHINE/Drivers/related item (this indicates that the driver is loaded only once)
"Flags" = DWORD: 1000
 
4,
[HKEY_LOCAL_MACHINE/system/storagemanager/profiles/<profilename>/<filesystemname>]

Add
"Mountasbootable" = DWORD: 1

 

This article from the csdn blog, reproduced please indicate the source: http://blog.csdn.net/t_larry/archive/2010/01/17/5201290.aspx

 

I. Hive registry function
[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
 
Note:
Systemhiv
Path and file name of hive files in the system
 
Profiledir
Path for saving the user configuration file
 
Defaultuser
User hive file loaded by default
 
Start devmgr
Load Device Manager at startup
 
Flags
This value replaces start devmgr and provides more precise control on the premise of including the start devmgr function.
Flag bit Setting Description
0x00000001 starts Storage Manager in phase one of startup for hive-based registry
(To implement hive, load the Storage Manager at startup)
0x00000002 starts Device Manager in phase one of startup for hive-based registry
(To implement hive, load the Device Manager at startup)
0x00000004 starts Storage Manager in phase one of startup for registry in external Rom, such as binfs
(To register extended Rom such as binfs, load the Storage Manager at startup)
0x00000008 starts Device Manager in phase one of startup for registry in external Rom, such as binfs
(To register extended Rom such as binfs, load the Device Manager at startup)

 
Registryflags
The regflushkey function is automatically called when the regclosekey function is called to automatically save the registry.
 
 
The Device Manager loads all device drivers under HKEY_LOCAL_MACHINE/Drivers/builtin.
 
 
 
Ii. Storage Management
[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"
 
Definition of [HKEY_LOCAL_MACHINE/system/storagemanager/profiles/hdprofile/fatfs] fatfs
"Enablecachewarm" = DWORD: 0
 
[HKEY_LOCAL_MACHINE/system/storagemanager/profiles/hdprofile/partitiontable]
"07" = "" (This value indicates that NTFS-type partitions do not enhance any file system)
 
[HKEY_LOCAL_MACHINE/system/storagemanager/profiles/sdmmc]
"Name" = "sd mmc device"
"Folder" = "SD card"
 
The branch can be defined as follows:
Flag description
"AutoFormat" whether to automatically format (1-Yes, 0-No)
"Automount": automatic mounting (1-Yes, 0-No)
"Autopart": automatic partitioning (1-Yes, 0-No)
"Defaultfilesystem" identifies unknown Partition Table IDS as partition types by default, such as binfs
"Folder" Mount directory name
"Mountflags" has been abolished since Win CE 5.0. It is used to identify the partition Mount mode.
"Name" storeinfo (Storage Manager) struct. szstorename member variable value
"Partitiondriver": Default loaded partition driver

 
 
Iii. File System
1. autoload settings
[HKEY_LOCAL_MACHINE/system/storagemanager/autoload/relfsd]
"DLL" = "relfsd. dll"
"Paging" = DWORD: 1
"Loadflags" = DWORD: 1
Value: type description
Loadflags: REG_DWORD controls how to load the file system.
1-The file system needs to be automatically loaded at the 0 or 1 phase of startup.
2-asynchronous loading in another thread. It is only supported in Phase 2 of startup (default value)
Bootphase: REG_DWORD control is used to verify the file system loading.
0-load before local initialization.
1-load after local initialization, before the registry function is loaded.
2-after the registry function is loaded.
DLL: REG_SZ: fsd dll file
Order: REG_DWORD specifies the loading sequence. The smaller the value, the more loaded.

2. File System settings
[HKEY_LOCAL_MACHINE/system/storagemanager/fatfs]; general definition
"Friendlyname" = "tfat filesystem"
"Flags" = DWORD: 00000014
"DLL" = "exfat. dll"
"Cachesize" = DWORD: 0
 
[HKEY_LOCAL_MACHINE/system/storagemanager/profiles/smflash/fatfs]; detailed definition
"Flags" = DWORD: 14
"Formattfat" = DWORD: 1
"Mountasbootable" = DWORD: 1
"Checkforformat" = DWORD: 1
 
 
Registry Value: type description
Buffersize: the buffer size of REG_DWORD.
The default value is 64 for tfat 32 for fat.
Cachesize: the disk cache size of REG_DWORD is in the unit of slices. If it is set to 0, the best cache is automatically used.
CodePage: REG_DWORD overrides cp_oemcp in all character conversions.
DLL: REG_SZ DLL file name.
Enablecache: whether to enable cache in REG_DWORD
0-Disable 1-enable
Enablecachewarm: REG_DWORD enables pre-warming of the cache.
Flags: REG_DWORD can be found in the table below.
Formattfat: REG_DWORD format to tfat
Friendlyname: REG_SZ specifies a friendly name for the file system.
Mountlabel: REG_DWORD volume name
Paging: REG_DWORD pagination 0-Disable 1-enable.
Util: REG_SZ specifies the DLL name of utility to do format and scan

 
Checkforformat
For Flash Media drivers (FMD), setting this flag will call ioctl_hal_query_format_partition IOCTL
 
 
Flag description
"Mountflags" abolished since Win CE 5.0
"Mounthidden" Hide mounting. 1-Enable. Replace "mountflags" = DWORD: 1
Whether "mountasbootable" includes the registry. The first mounted partition storage hive registry. 1-Enabled
Replace "mountflags" = DWORD: 2
"Mountasroot" is mounted as the root file system. 1-Enable. Replace "mountflags" = DWORD: 4
"Mountasrom" mounting to extended ROM file system. 1-Enable. Replace "mountflags" = DWORD: 10
"Mountsystem" all files and directories are used as system files. 1-Enable. Replace "mountflags" = DWORD: 20
"Mountpermanent" This volume cannot be detached. 1-Enable. Replace "mountflags" = DWORD: 40
"Mountasnetwork" specifies that this volume label receives all UNC paths. 1-enabled.
Replace "mountflags" = DWORD: 80

 
Flags
 
Flag value description
Fatfs_update_access 0x00000001 update access time.
Fatfs_disable_log 0x00000002 disable event logs.
Fatfs_disable_autoscan 0x00000004 disable automatic scanning.
Fatfs_verify_writes 0x00000008 write verification.
Fatfs_enable_backup_fat 0x00000010 back up the fat table.
Fatfs_force_writethrough 0x00000020 allows the system to directly write data in any buffer zone to the disk, which will speed up data writing to the disk.
Fatfs_disable_autoformat 0x00000040 disable automatic formatting of unformatted partitions.
Fatfs_wfws_nowritethru 0x00010000 disables write through on the writefilewithseek function. improves memory-mapped file performance.

Fatfs_disable_format 0x00020000 disable formatting.
Fatfs_trans_data 0x00040000 write operation transfers data at the same time.

 
Cachesize
Registry entry number of sectors cache in kilobytes (KB)
2 2 1
4 4 2
8 8 4
10 16 8
20 16 32
40 64 32
80 128 64
100 256 128
200 512 256
400 1024 512
800 2048 1024
1000 4096 2048

 
 
 
Add hive registry support
 
1. Add the hive-based registry catalog component
2. Add
[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. In the each driver that is loaded during the first phase of startup
[Add HKEY_LOCAL_MACHINE/Drivers/related item (this indicates that the driver is loaded only once)
"Flags" = DWORD: 1000
 
4,
[HKEY_LOCAL_MACHINE/system/storagemanager/profiles/<profilename>/<filesystemname>]

Add
"Mountasbootable" = DWORD: 1

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.