reg files and DB files in the WinCE BSP

Source: Internet
Author: User

1.REG file

Registry files, which are basically the same as the registry files used in the Windows operating system, are primarily platform.reg in the BSP, which describes the configuration associated with the hardware platform, mostly to describe the driver-related information.

The format of the registration mark is as follows:

[KEY1]

"ValueName1" ={value Type}:{data}

"ValueName2" ={value Type}:{data}

[KEY2]

"ValueName1" ={value Type}:{data}

Where the value type and data correspond to each other, different value types correspond to different data, as follows:

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" Multiple string types
REG_Binary Hex:xx,xx,xx Binary type
HEX Hex (xxxxxxxx): xx,xx,xx,xx Hexadecimal type

In the registry, you can also use IF/ENDIF for condition inclusion, where the condition can be an environment variable in a wince, and a space followed by an exclamation point ("!") to indicate that there is no setting or not equal, such as:

IF environment variable [= value] [!]

[KEY1]

"ValueName1" ={value Type}:{data}

"ValueName2" ={value Type}:{data}

[KEY2]

"ValueName1" ={value Type}:{data}

ENDIF

If a row of the registry is separated by a semicolon (";") Begin by saying that the line was commented out. There are, of course, some exceptions, such as when supporting the Hive registry, as follows:

; HIVE BOOT Section

... reg data ...

; End HIVE BOOT section

About the Hive registry, previously introduced, here is not much to say. We are simply creating, deleting key, assigning values, and so on in the registry.

Create a registry key:

[Key1]

"ValueName" = "Value Type"

Delete a registry key:

[-key1]

Delete a registry value:

"ValueName1" =-

Registry configurations related to BSP and hardware platforms are placed in Platform.reg files, and wince engineering-related configurations should be placed in Project.reg files.

2.DB file

Database file, also has platform.db and project.db two files. But rarely used, especially platform.db, these database files are stored based on WinCE objects, will be loaded into RAM after the wince boot, the power loss will be lost, the 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

You can use the format above to add database records to a. db file, because I have never used, so I do not have much knowledge of the above format, I believe that the people who have done the database, look at the above format may be understood.

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.