(摘要)windows CE 注册表 .reg 文件

(出处不清,sorry)

REG Files

 

REG files for the Windows CE build process use almostthe same format as REG files for the other Windows versions. The primarydifference is that the REG version marker is removed from the top of the file.This prevents you from accidentally merging a Windows CE REG file into yourdevelopment workstation's registry, as the default action for double clicking aREG file is normally to merge the data instead of editing the file. (I feelsorry for and am thankful to the first guy that did that and learned the hardway what a problem that would be!) The syntax is fairly straightforward. A keyname is specified in brackets based on one of the system-defined keys. Data isassigned to sub-keys using the key name, data type, and data value, with @identifying the key's default value.

 

[HKEY_LOCAL_MACHINE\SOFTWARE\MegaSoft\KillerApp]

   "Version"=dword:0400

   "Build"=dword:0b3f

   "Greeting"="Howdy!"

   "Messages"=multi_sz:"WindowsCE is Cool!","KillerApp is Super Cool!"

   "AppData"=hex:01,00,02,00,03,00

 

In this example, a new key is created for theMegaSoft software company for their KillerApp. The following values are addedto that key.

 

Name

Type

Value

Version

REG_DWORD

0x0400. DWORD value types are always in hex and therefore the "0x" prefix is not used.

Build

REG_DWORD

0x0b3f

Greeting

REG_SZ

"Howdy!"

Messages

REG_MULTI_SZ

"Windows CE is Cool!\0KillerApp is Super Cool!\0\0"

AppData

REG_BINARY

01,00,02,00,03,00 Hex is always assumed here as well.

posted @ 2010-07-17 13:37  左手程序右手诗  阅读(692)  评论(2编辑  收藏  举报