REG Files

There are 16 entries for the tag REG Files
Windows CE: Using a Driver to Read/Write Hardware Registers
Download GPIO Example driver and appplication source code A recent discussion thread in the Windows Embedded Compact Platform Development forum made it clear to me that for new Windows CE Software Engineers doing something as simple as accessing a hardware register can be very difficult. In the old days, Windows CE 5.0 and before, it was very easy; write an application that allocates a virtual address and then read or write a register. The problem with that is that allowing applications to access ......

Posted On Sunday, August 1, 2010 4:21 PM | Comments (14)

Platform Builder: Setting the Task Bar to Auto Hide by Default
In the last Microsoft Windows CE chat, someone asked about setting the Explorer Task Bar to auto hide by default. The problem is that the value that controls auto hide is the default value for the key. Default key values are defined in reg files using @=dword:1, which is not supported by Platform Builder’s fmerge. One solution would be to clone the Explorer shell and modify it so that the default value is set to TRUE. But that is a big hammer for a very small nail, isn’t it? Another solution would ......

Posted On Friday, September 18, 2009 6:41 PM | Comments (1)

Windows CE: Editing the Registry
I have posted several articles about writing software to modify and read the registry (see Summary of Registry Posts.) But what if you aren’t a Software Engineer, or don’t want to write a program to make a simple change to the registry? There are several registry editors available: · Remote Registry Editor – this tool comes with the development tools for Windows CE. It allows users to edit the Windows CE registry on a PC via a connection to the Windows CE device. The connection can be through ActiveSync, ......

Posted On Monday, February 16, 2009 12:40 PM | Comments (2)

Platform Builder: Cannot open include file: 'windows.h': No such file or directory
The following is unique to Platform Builder, and applies to any version. The problem is that when building a driver, BSP or sub-project, the compiler fails with the error message “Cannot open include file: 'windows.h': No such file or directory.” There are probably many ways to cause this error. Many of these are simple user error, like accidently deleting or moving windows.h. But let’s focus on the most likely problems that can cause this. 1. The most common cause that I have run into is that the ......

Posted On Friday, January 23, 2009 12:23 PM | Comments (0)

Platform Builder: Automatically Flushing the Registry on Changes
I have discussed flushing the registry from applications before in Windows CE: Persisting Registry Changes from an Application. It is possible to set up the file system to automatically flush the registry when using hive registry. The system will automatically flush the registry when the system suspends. Filesys can be configured to flush the registry when changes occur by setting some registry values. [HKEY_LOCAL_MACHINE\System\... “SpawnThread"=dword:1 "FlushPriority256"=dword:FF ......

Posted On Thursday, January 1, 2009 10:43 PM | Comments (4)

Windows CE: Save and Restore the Registry
In other posts, I have discussed persistent registry (Windows CE: Persisting Registry Changes from an Application) but what if we want to set the registry back to some known point? There are some functions to save the registry, or parts of the registry, and the restore them later. Save and Restore the Entire Registry The functions RegCopyFile() and RegRestoreFile() can be used to save the registry to a file and then restore the registry with that file later. The following are two very simple applications ......

Posted On Tuesday, December 23, 2008 9:05 PM | Comments (7)

Windows CE: Enumerating the Registry
There are several ways to export the registry from a Windows CE device including the Remote Registry Editor and third-party registry editors. The Remote Registry Editor requires a connection to the device and third-party registry editors typically require a display. I don’t always have a connection to the device or a display so I thought it would be interesting to enumerate the registry to export the registry to the debug port where I can capture it to a file. I set out to figure this out just based ......

Posted On Monday, December 15, 2008 7:32 PM | Comments (0)

Windows CE: Stream Interface Driver Registry Settings
If you have looked at my other posts on stream interface drivers, you have seen that the registry settings that I use for Driver Shell are: [HKEY_LOCAL_MACHINE\Drivers... "Dll"="DriverShell.dll" "Order"=dword:4 "Prefix"="XXX" "DeviceArrayIndex"=dword:1 "IClass"="{A32942B7-920C-48... I thought that I would discuss these a little more, and includes some other settings. Let’s start with the key HKEY_LOCAL_MACHINE\Drivers\... The key HKEY_LOCAL_MACHINE\Drivers\... ......

Posted On Monday, December 8, 2008 9:33 PM | Comments (11)

Windows CE: Remove Suspend from the Start Menu
To remove Suspend from the Explorer shell Start Menu, change the following registry value: [HKEY_LOCAL_MACHINE\Explorer] "Suspend"=dword:1 To: [HKEY_LOCAL_MACHINE\Explorer] "Suspend"=dword:0 You may also want to look at Summary of Registry Posts Tags: REG Files Copyright © 2008 – Bruce Eitman All Rights Reserved ......

Posted On Tuesday, November 25, 2008 5:12 PM | Comments (2)

Platform Builder: Debugging the Boot Hive
One of my engineers was working on a new system today and was having a problem setting up a NAND flash disk. The problem was that while he had made a change to the registry to set up the start address and size of the disk, the changes just were not visible in when the OS ran. We both have a lot of experience developing and building Windows CE systems, so we checked the obvious things: 1. He saved Platform.reg where he made the changes 2. He copied Platform.reg to the _FLATRELEASEDIR 3. When makeimg ......

Posted On Monday, October 13, 2008 10:00 PM | Comments (3)

Windows CE: Programmatically Setting Up an Application to Auto Start
Last week I needed to write an application for my Electrical Engineer to run at boot up to test some hardware changes. He needed to run this test every time the system booted, and needed to have the system reboot often. Of course I don’t expect an EE to be able to set up the test so that it automatically starts when the system boots, and I don’t want to do it for him so I decided to have the application set itself up to run again on the next boot. I have discussed how to set up an application to ......

Posted On Monday, October 13, 2008 9:35 PM | Comments (7)

Platform Builder: Using STR Files
One way to customize your project configuration files is to use string replacement with STR files. Technically, the STR files are for language localization, but that doesn’t exclude using them for customization. In fact, when you create a new project using Platform Builder for Windows CE 6.0, your project will contain a cebase.str for you to set your device name in. STR files are plain text files stored in your FILES\INTLTRNS\<Local> folder. If you aren’t sure which folder you are using, open ......

Posted On Tuesday, July 8, 2008 8:22 PM | Comments (0)

Platform Builder: Fmerge Tips and Tricks
Platform Builder: Fmerge Tips and Tricks Fmerge is a file merge utility that runs when you run makeimg. Fmerge is used to concatenate and process bib, reg, dat, db and nls files. Each file type is handled in a different way. Tip1, check the makeimg output. The makeimg output includes the fmerge command line for each file type. This can be valuable for understanding which file is included when, and the name of the output file that is created. I will leave it to you to review the command line to check ......

Posted On Friday, June 20, 2008 3:00 PM | Comments (0)

Windows CE: Reading a String from the Registry
I made a change to a string value in the registry recently. That seemed like a harmless thing to do, didn’t it? But, what I did was make the string longer than it was before, again seemed harmless. Harmless until some applications started reading the value into arrays with hard coded length, the problems began. The problem is that RegQueryValueEx() does not have a parameter to indicate the size of the buffer that it will put data into. This means that if the data is bigger than the buffer, RegQueryValueEx() ......

Posted On Wednesday, June 11, 2008 12:48 PM | Comments (5)

Platform Builder: Managing the Registry
The Registry is an important part of Windows CE and allows you to manage many parts of the system's behavior. You have two registry files available to you to use for managing the registry in your system; platform.reg and project.reg. Platform.reg is used to make changes that apply to your BSP, if you are developing a BSP Project.reg is used to make changes that apply to your project You can use these files to add new registry keys and values, you can change existing values and you can delete keys ......

Posted On Wednesday, June 4, 2008 10:42 PM | Comments (9)

Platform Builder: Pulling it all together with Makeimg
The source code is built, the files needed for the OS have been collected in the _FLATRELEASEDIR, so now it is time to create the OS Image or nk.bin. The tool for this is Makeimg.exe. Makeimg uses some other tools to do this including fmerge.exe, res2res.exe and romimage.exe. If I wanted to keep this very simple, I could just tell you to run makeimg from the command line. There are no command line arguments, so this would be done. After running makeimg, you will have the nk.bin that you need for ......

Posted On Friday, May 23, 2008 11:13 PM | Comments (1)