How to Use hive-based registry

Source: Internet
Author: User
Tags builtin
How to Use hive-based registry

Mark
2007-12-04
The hive registry of Ce allows you to save user-related settings in the form of a registry to storage devices such as Dom. after hive-related components are added, information can be saved to the storage device manually or automatically.
L
The manual storage method is to write the user-defined information back to the hive registry after executing a software program.
L
The automatic storage mode is to set registryflags to 1 in platform. Reg. After the user starts the system, the settings will be automatically saved to hive registry.
The specific operations under ce5.0 ce6.0 are as follows:
I.
Implementation Method in ce6.0
1.
Add component:
L
Catalog-> core OS-> cebase-> filesystem and Data Store-> File System-interneal
-> Rom-only File System
L
Catalog-> core OS-> cebase-> filesystem and Data Store-> registry storage->
Hive-based registry
L
Catalog-> core OS-> cebase-> filesystem and Data Store-> Storage Manager
-> FAT file system
L
Catalog-> Device Drivers-> storage devices-> atapi PCI support
L
Catalog-> Device Drivers-> storage devices-> atapi PCI support->
Basic atapi pci cd/DVD Rom support-> atapi PCI/ide storage block driver
There are two methods for subsequent steps:
Method 1: (manually Save the information to hive registry. After starting ce, You need to execute the corresponding program before saving it)
2. Modify the Registry
Add the following content to the platform. reg file:
; @ Cesysgen if filesys_fsreghive
; Hive boot section
[HKEY_LOCAL_MACHINE \ init \ bootvars]
"Systemhive" = "\ REGISTRY \ System. HV"
"Profiledir" = "\ REGISTRY"
"Start devmgr" = DWORD: 1
"Defaultuser" = "user"
"Flags" = DWORD: 3
[HKEY_LOCAL_MACHINE \ drivers \ resources \ IRQ]
"Flags" = DWORD: 1000
[HKEY_LOCAL_MACHINE \ drivers \ resources \ iO]
"Flags" = DWORD: 1000
[$ (Pci_bus_root) \ template \ genericide]
"Flags" = DWORD: 1000
[$ (Pci_bus_root) \ template \ genericide \ device0]
"Flags" = DWORD: 1000
[HKEY_LOCAL_MACHINE \ SYSTEM \ storagemanager \ fatfs]
"Flags" = DWORD: 1004
[HKEY_LOCAL_MACHINE \ SYSTEM \ storagemanager \ profiles \ hdprofile \ fatfs]
"Mountasbootable" = DWORD: 1
[HKEY_LOCAL_MACHINE \ drivers \ builtin \ PCI \ template \ PCI-PCI-BRIDGE]
"Class" = DWORD: 06
"Subclass" = DWORD: 04
"Noconfig" = DWORD: 1
; End hive boot section
; @ Cesysgen endif filesys_fsreghive
; @ Cesysgen if! Filesys_fsysram
; Hive boot section
[HKEY_LOCAL_MACHINE \ SYSTEM \ storagemanager \ profiles \ hdprofile \ fatfs]
"Mountasroot" = DWORD: 1
"Mountpermanent" = DWORD: 1
; End hive boot section
; @ Cesysgen endif! Filesys_fsysram
3. Compile the image
4. Compile the Registry refresh software (console Program)
The specific procedure is as follows:

# Include "stdafx. H"

Int winapi winmain (hinstance,
Hinstance hprevinstance,
Lptstr lpcmdline,
Int ncmdshow)
{
Regflushkey (HKEY_LOCAL_MACHINE );
Regflushkey (hkey_classes_root );
Regflushkey (HKEY_CURRENT_USER );
Regflushkey (HKEY_USERS );

Return 0;
}

Method 2: (automatically save information to hive Registry)
2. Modify the Registry
Add the following content to the platform. reg file:
; @ Cesysgen if filesys_fsreghive
; Hive boot section
[HKEY_LOCAL_MACHINE \ init \ bootvars]
"Systemhive" = "\ REGISTRY \ System. HV"
"Profiledir" = "\ REGISTRY"
"Start devmgr" = DWORD: 1
"Registryflags" = DWORD: 1
"Defaultuser" = "user"
"Flags" = DWORD: 3
[HKEY_LOCAL_MACHINE \ drivers \ resources \ IRQ]
"Flags" = DWORD: 1000
[HKEY_LOCAL_MACHINE \ drivers \ resources \ iO]
"Flags" = DWORD: 1000
[$ (Pci_bus_root) \ template \ genericide]
"Flags" = DWORD: 1000
[$ (Pci_bus_root) \ template \ genericide \ device0]
"Flags" = DWORD: 1000
[HKEY_LOCAL_MACHINE \ SYSTEM \ storagemanager \ fatfs]
"Flags" = DWORD: 1004
[HKEY_LOCAL_MACHINE \ SYSTEM \ storagemanager \ profiles \ hdprofile \ fatfs]
"Mountasbootable" = DWORD: 1
[HKEY_LOCAL_MACHINE \ drivers \ builtin \ PCI \ template \ PCI-PCI-BRIDGE]
"Class" = DWORD: 06
"Subclass" = DWORD: 04
"Noconfig" = DWORD: 1
; End hive boot section
; @ Cesysgen endif filesys_fsreghive
; @ Cesysgen if! Filesys_fsysram
; Hive boot section
[HKEY_LOCAL_MACHINE \ SYSTEM \ storagemanager \ profiles \ hdprofile \ fatfs]
"Mountasroot" = DWORD: 1
"Mountpermanent" = DWORD: 1
; End hive boot section
; @ Cesysgen endif! Filesys_fsysram
3. Compile the image
II.
Implementation Method on ce5.0
1.
Add component:
L
Catalog-> core OS-> cebase-> filesystem and Data Store-> registry storage->
Hive-based registry
L
Catalog-> core OS-> cebase-> filesystem and Data Store-> Storage Manager
-> FAT file system
L
Catalog-> Device Drivers-> storage devices-> atapi PCI/ide storage block driver
There are two methods for subsequent steps:
Method 1: (manually Save the information to hive registry. After starting ce, You need to execute the corresponding program before saving it)
2. Modify the Registry
Add the following content to the platform. reg file:
; @ Cesysgen if filesys_fsreghive
; Hive boot section
[HKEY_LOCAL_MACHINE \ init \ bootvars]
"Systemhive" = "\ REGISTRY \ System. HV"
"Profiledir" = "\ REGISTRY"
"Start devmgr" = DWORD: 1
"Defaultuser" = "user"
[HKEY_LOCAL_MACHINE \ drivers \ resources \ IRQ]
"Flags" = DWORD: 1000
[HKEY_LOCAL_MACHINE \ drivers \ resources \ iO]
"Flags" = DWORD: 1000
[$ (Pci_bus_root) \ template \ genericide]
"Flags" = DWORD: 1000
[HKEY_LOCAL_MACHINE \ SYSTEM \ storagemanager \ fatfs]
"Flags" = DWORD: 1000
[HKEY_LOCAL_MACHINE \ SYSTEM \ storagemanager \ profiles \ hdprofile]
"Mountflags" = DWORD: 2
[HKEY_LOCAL_MACHINE \ drivers \ builtin \ PCI \ template \ PCI-PCI-BRIDGE]
"Class" = DWORD: 06
"Subclass" = DWORD: 04
"Noconfig" = DWORD: 1
; End hive boot section
; @ Cesysgen endif filesys_fsreghive
3. Compile the image
4. Compile the Registry refresh software (console Program)
The specific procedure is as follows:

# Include "stdafx. H"

Int winapi winmain (hinstance,
Hinstance hprevinstance,
Lptstr lpcmdline,
Int ncmdshow)
{
Regflushkey (HKEY_LOCAL_MACHINE );
Regflushkey (hkey_classes_root );
Regflushkey (HKEY_CURRENT_USER );
Regflushkey (HKEY_USERS );

Return 0;
}

Method 2: (automatically save information to hive Registry)
2. Modify the Registry
Add the following content to the platform. reg file:
; @ Cesysgen if filesys_fsreghive
; Hive boot section
[HKEY_LOCAL_MACHINE \ init \ bootvars]
"Systemhive" = "\ REGISTRY \ System. HV"
"Profiledir" = "\ REGISTRY"
"Start devmgr" = DWORD: 1
"Registryflags" = DWORD: 1
"Defaultuser" = "user"
[HKEY_LOCAL_MACHINE \ drivers \ resources \ IRQ]
"Flags" = DWORD: 1000
[HKEY_LOCAL_MACHINE \ drivers \ resources \ iO]
"Flags" = DWORD: 1000
[$ (Pci_bus_root) \ template \ genericide]
"Flags" = DWORD: 1000
[HKEY_LOCAL_MACHINE \ SYSTEM \ storagemanager \ fatfs]
"Flags" = DWORD: 1000
[HKEY_LOCAL_MACHINE \ SYSTEM \ storagemanager \ profiles \ hdprofile]
"Mountflags" = DWORD: 2
[HKEY_LOCAL_MACHINE \ drivers \ builtin \ PCI \ template \ PCI-PCI-BRIDGE]
"Class" = DWORD: 06
"Subclass" = DWORD: 04
"Noconfig" = DWORD: 1
; End hive boot section
; @ Cesysgen endif filesys_fsreghive
3. Compile the image

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.