February 2010 Entries

Windows XP: Displaying Battery Status in C Sharp
Download the Complete Battery Monitor Source Code See Windows XP: Overview of Battery Monitor Series for a description of the folder in the source code. Earlier I promised applications that use the WMI Win32_Battery class to display battery status. I started this series of articles with C# (Windows XP: Monitoring Batteries in C Sharp) so I will start with a C# application. For those of you who know me, I am not a user interface developer and will leave fancy GUIs to those of you who are better than ......

Posted On Thursday, February 25, 2010 3:46 PM | Comments (0)

Windows XP: Monitoring Batteries in C++
Download the Complete Battery Monitor Source Code See Windows XP: Overview of Battery Monitor Series for a description of the folder in the source code. This is the second in series of articles about monitoring batteries in Windows XP. In the first article, Windows XP: Monitoring Batteries in C Sharp, I showed how to use the Windows Management Instrumentation (WMI) to get battery status for multiple batteries using C#. Now what I didn’t tell you was that we found a potential bug in the .NET Framework ......

Posted On Tuesday, February 23, 2010 1:04 PM | Comments (0)

Windows CE Chat February 23, 2010
Late notice Another great opportunity to ask Microsoft engineers your technical questions is coming up on Tuesday, February 23rd. These chats are your opportunity to get advice and answers from the engineers at Microsoft. You may want to review Transcript Archive to get an idea about what kind of topics are discussed. Title: Windows CE Live Chat! When: Tuesday, February 23, 2010 9:00 - 10:00 A.M. Pacific Time Add to Calendar Description: Do you have tough technical questions regarding Windows CE ......

Posted On Monday, February 22, 2010 2:54 PM | Comments (2)

Windows XP: Monitoring Batteries in C Sharp
Download the Complete Battery Monitor Source Code See Windows XP: Overview of Battery Monitor Series for a description of the folder in the source code. I was working with a customer last week who needed to get the battery charge remaining percent for two batteries. How hard could that be? I did a quick search and found that GetSystemPowerStatus() returns the charge remaining for one battery. Which is, well, useless for a multi-battery system. Some more searching turned up the Windows Management ......

Posted On Monday, February 22, 2010 2:47 PM | Comments (1)

Platform Builder: The K Flag and Your Driver
One of our engineers was adding a third party driver to system today and had trouble getting it to work. When he installed from the CAB file that was provided, it worked correctly. When he built it into the OS, it wouldn’t work correctly (unfortunately I didn’t discuss it in enough detail to tell you what it was doing.) Just before the end of the day he called out to me and said he left the K flag out. For those of us who read the Platform Builder newsgroup regularly, we know that this is a common ......

Posted On Thursday, February 4, 2010 1:47 PM | Comments (3)