Книга: Microsoft Windows Embedded CE 6.0 Exam Preparation Kit

Registry Files

Registry Files

Registry (.reg) files are used to initialize the system registry on the remote device. These files are almost identical to registry files of Windows desktop operating systems, except that the CE .reg files do not start with a header and version information. If you accidentally double-click a CE .reg file on your development computer and confirm that you want to add the settings to the desktop registry, a dialog box appears to inform you that the .reg file is not a valid registry script. Another difference is that CE .reg files can include conditional statements similar to .bib files, so that you can import registry settings according to the selected catalog items. The following snippet from the Platform.reg file of the Device Emulator BSP illustrates the use of preprocessing conditions.

; Our variables
#define BUILTIN_ROOT HKEY_LOCAL_MACHINEDriversBuiltIn
;#define PCI_BUS_ROOT $(BUILTIN_ROOT)PCI
#define DRIVERS_DIR $(_PUBLICROOT)commonoakdrivers
; @CESYSGEN IF CE_MODULES_RAMFMD
; @CESYSGEN IF FILESYS_FSREGHIVE
; HIVE BOOT SECTION
[HKEY_LOCAL_MACHINEinitBootVars]
"Flags"=dword:1 ; see comment in common.reg
; END HIVE BOOT SECTION
; @CESYSGEN ENDIF FILESYS_FSREGHIVE
; @CESYSGEN IF CE_MODULES_PCCARD
; @XIPREGION IF DEFAULT_DEVICEEMULATOR_REG
IF BSP_NOPCCARD !
#include "$(_TARGETPLATROOT)srcdriverspccardpcc_smdk2410.reg"
#include "$(DRIVERS_DIR)pccardmddpcc_serv.reg"
[HKEY_LOCAL_MACHINEDri versPCCARDPCMCIATEMPLATEPCMCIA]
"Dll"="pcmcia.dll"
"NoConfig"=dword:1
"NoISR"=dword:1 ; Do not load any ISR.
"IClass"=multi_sz:"{6BEAB08A-8914-42fd-B33F-61968B9AAB32}=
PCMCIA Card Services"
ENDIF ; BSP_NOPCCARD !
; @XIPREGION ENDIF DEFAULT_DEVICEEMULATOR_REG
; @CESYSGEN ENDIF CE_MODULES_PCCARD

Оглавление книги

Оглавление статьи/книги

Генерация: 0.924. Запросов К БД/Cache: 3 / 0
поделиться
Вверх Вниз