December 2009 Entries

Windows CE: Killing an Application
In Windows CE: Using ToolHelpAPI to list running processes, I showed how to use the ToolHelpAPI to get a list of running processes or applications. Someone recently asked in one of the newsgroups how to kill an application. The question included code using ToolHelpAPI to find a process, but the code had some problems. ToolHelpAPI does provide information about the processes, but the function for killing a process, TerminateProcess(), needs a HANDLE to the process. OpenProcess() can be used to get ......

Posted On Monday, December 14, 2009 1:30 PM | Comments (3)

Windows CE Chat December 15, 2009
Another great opportunity to ask Microsoft engineers your technical questions is coming up on Tuesday, November 24th. These chats are your opportunity to get advice and answers from the engineers at Microsoft. You may want to review the transcript from previous months to get an idea about what kinds of topics are discussed. Title: Windows CE Live Chat When: Tuesday, December 15, 2009 9:00 - 10:00 A.M. Pacific Time Add to Calendar Description: Do you have tough technical questions regarding Windows ......

Posted On Saturday, December 12, 2009 8:00 AM | Comments (0)

Platform Builder: Communicating Between the Bootloader and the OS
In the article Platform Builder: Setting Default Memory Divisions, I discussed using pOEMCalcFSPages() or pfnCalcFSPages() to set the memory division between storage and program memory. In that article I presented the following function: DWORD OEMCalcFSPages(DWORD dwMemPages, DWORD dwDefaultFSPages) { DWORD Percent = 50; return ( dwMemPages * Percent ) / 100; } Then I suggested that with enough knowledge of your BSP and an imagination, you could dynamically set the percent value instead of using ......

Posted On Friday, December 11, 2009 12:34 PM | Comments (1)

Windows CE: Using RAPI to Run Applications (Part 3)
The CERunApp application can be downloaded from: Download CERunApp.exe The CERunApp source code can be downloaded from: Download CERunApp source code In Windows CE: Using RAPI to Run Applications (Part 1) and Windows CE: Using RAPI to Run Applications (Part 2) I wrote about using RAPI remotely start applications on a Windows CE device from a workstation. In Windows CE: Using RAPI to Run Applications (Part 2) I presented an application, CERunApp.exe, that downloads an application from the workstation ......

Posted On Thursday, December 10, 2009 3:06 PM | Comments (1)

Platform Builder: Setting Default Memory Divisions
Windows CE divides the system RAM into two parts; storage memory and program memory. These two parts are equally divided by default. The problem with that is that some systems need to store files than they need program space, and some systems need more program space than storage. The division can be changed dynamically at run time, which I discussed in Windows CE: Automatically setting the Object Store Size But the device OEM can change the division default in two ways: 1. FSRAMPERCENT in config.bib ......

Posted On Wednesday, December 9, 2009 2:37 PM | Comments (4)