Ii. reg file and DB File 1. reg file Registry file, which is basically the same as the registry file used in the Windows operating system. In BSP, it is mainly platform. reg. The Registry File describes the configurations related to the hardware platform, most of which are used to describe the driver information. The registration subject format is as follows: [Key1] "Valuename1" = {Value Type }:{ data} "Valuename2" = {Value Type }:{ data} [Key2] "Valuename1" = {Value Type }:{ data} Value Type and data correspond to each other, and different value types correspond to different data, as follows:
This article Reprinted from http://blog.csdn.net/churenxh/archive/2008/12/09/3485011.aspx
Value Type |
Data |
|
REG_SZ |
"My string" |
String type |
REG_DWORD |
DWORD: NNNN (hex number) |
DWORD type |
Reg_multi_sz |
Multi_sz: "my_string_1", "my_string_2" |
Multi-string type |
REG_BINARY |
HEX: XX, XX, xx |
Binary type |
HEX |
Hex (XXXXXXXX): XX, xx |
Hexadecimal type |
If environment variable [= value] [!] [Key1] "Valuename1" = {Value Type }:{ data} "Valuename2" = {Value Type }:{ data} [Key2] "Valuename1" = {Value Type }:{ data} Endif If a row in the Registry starts with a semicolon (";"), this line is commented out. There are also some exceptions, such as the following when the hive registry is supported: ; Hive boot section ... Reg data... ; End hive boot section I have introduced the hive registry before. I will not talk about it here. In the registry, we create, Delete keys, assign values, and perform other operations. Create a registry key: [Key1] "Valuename" = "value type" Delete a registry key: [-Key1] Delete A registry value: "Valuename1" =- The Registry configurations related to BSP and hardware platforms are stored in the platform. reg file. The configurations related to the wince project should be placed in the project. reg file. 2. DB File The database file also has two files: Platform. DB and project. DB. But it is rarely used, especially platform. DB, these database files are based on WinCE object storage, and will be loaded into RAM after wince is started. If the power is down, it will be lost. The specific format is as follows: Database: "db_name": hex_type: num_sort_order: <sort order specifier> 1 Record: Field: field_hex_propid: Value End End Database The above format can be used in. I have never used the database records in the DB file, so I don't know much about the above format. I believe that people who have used the database may understand the above format. |