FIX: You receive an incorrect result when you use the 1004 battery API test case in the Windows CE Test Kit for Windows Embedded CE 6 R2

Article translations Article translations
Article ID: 950628 - View products that this article applies to.
Expand all | Collapse all

On This Page

SYMPTOMS

When you use the 1004 battery API test case in the Windows CE Test Kit for Windows Embedded CE 6 R2 to test the BatteryGetLifeTimeInfo function, you receive an incorrect result.

CAUSE

This problem occurs because of a problem in the test case. If you call the BatteryGetLifeTimeInfo function by using NULL as a parameter, the function returns 0. However, the test case expects the return result to be 87.

RESOLUTION

Software update information

A supported software update is now available from Microsoft as Windows CE 6.0 Platform Builder Monthly Update (April 2008). You can confirm this by scrolling to the "File information" section of this article. The package file name contains the product version, date, Knowledge Base article number, and processor type. The package file name format is:
Product version-yymmdd-kbnnnnnn-processor type
For example: Wincepb50-060503-kb917590-armv4i.msi is the ARMV4i Windows CE 5.0 Platform Builder fix that is documented in KB article 917590 and that is contained in the May 2006 monthly update. To resolve this problem immediately, click the following article number for information about obtaining Windows CE Platform Builder and core operating system software updates:
837392 How to locate core operating system fixes for Microsoft Windows CE Platform Builder products

Prerequisites

This update is supported only if all previously issued updates for this product have also been installed.

Restart requirement

After you apply this software update, you must perform a clean build of the whole platform. To clean the platform, click Clean on the Build menu. To build the platform, click Build Platform on the Build menu. You do not have to restart the computer after you apply this software update.

Update replacement information

This update does not replace any other updates.

File information

The English version of this software update package has the file attributes or the later file attributes that are listed in the following table.
Collapse this tableExpand this table
File nameFile sizeDateTime
Wincepb60-080408-kb950628-armv4i.msi444,92809-Apr-200800:58
Wincepb60-080408-kb950628-mipsii.msi449,53609-Apr-200800:58
Wincepb60-080408-kb950628-mipsii_fp.msi449,53609-Apr-200800:58
Wincepb60-080408-kb950628-mipsiv.msi450,56009-Apr-200800:58
Wincepb60-080408-kb950628-mipsiv_fp.msi451,07209-Apr-200800:58
Wincepb60-080408-kb950628-sh4.msi443,90409-Apr-200800:58
Wincepb60-080408-kb950628-x86.msi445,44009-Apr-200800:58
The English version of this software update package has the file attributes (or later file attributes) that are listed in the following table. The dates and times for these files are listed in Coordinated Universal Time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time item in Control Panel.
Collapse this tableExpand this table
File nameFile sizeDateTimePath
Batapitest.dll19,96805-Apr-200821:02pb\cepb\wcetk\ddtk\armv4i
Batapitest.dll24,57605-Apr-200818:40pb\cepb\wcetk\ddtk\mipsii
Batapitest.dll24,57605-Apr-200823:28pb\cepb\wcetk\ddtk\mipsii_fp
Batapitest.dll25,08806-Apr-200804:18pb\cepb\wcetk\ddtk\mipsiv
Batapitest.dll25,08806-Apr-200801:53pb\cepb\wcetk\ddtk\mipsiv_fp
Batapitest.dll17,92006-Apr-200806:40pb\cepb\wcetk\ddtk\sh4
Batapitest.dll16,89606-Apr-200808:58pb\cepb\wcetk\ddtk\x86

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

MORE INFORMATION

The following is the 1004 battery API test case:
   BEGIN TEST: "BatteryGetLifeTimeInfo", Threads=0, Seed=31702
      Calling BatteryGetLifeTimeInfo(x, x, x)
      Calling BatteryGetLifeTimeInfo(NULL, x, x)
      GetLastError is 0.
      ERROR:  The error code returned is 0, while the expected value is 87.
      Calling BatteryGetLifeTimeInfo(x, NULL, x)
      GetLastError is 0.
      ERROR:  The error code returned is 0, while the expected value is 87.
      Calling BatteryGetLifeTimeInfo(x, x, NULL)
      GetLastError is 0.
      ERROR:  The error code returned is 0, while the expected value is 87.
   END TEST: "BatteryGetLifeTimeInfo", FAILED, Time=0.004
For more information about software update terminology, click the following article number to view the article in the Microsoft Knowledge Base:
824684 Description of the standard terminology that is used to describe Microsoft software updates

Properties

Article ID: 950628 - Last Review: October 8, 2011 - Revision: 2.0
APPLIES TO
  • Windows Embedded CE 6.0 R2
Keywords: 
kbfix kbexpertiseadvanced kbqfe KB950628

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com