MC70 SMDK Question

// Expert user has replied.
S Serge Larose 3 years 6 months ago
1 3 0

Team,In our SMDK for MC70 do we have an API that will allow the customer to extract the Battery charge level? Thank you

Serge

Please Register or Login to post a reply

3 Replies

R Richard Linsley-Hood

Paul is correct but it is worth pointing out that this API is not part of our EMKDs but is from the Microsoft API set. This is therefore a basic OS call.

Platform Builder for Microsoft Windows CE 5.0
 

GetSystemPowerStatusEx2

See Also

SYSTEM_POWER_STATUS_EX2 | System Information Functions

Requirements

OS Versions: Windows CE 2.12 and later.Header: Winbase.h.Link Library: Coredll.lib.

This function retrieves battery status information.
DWORD GetSystemPowerStatusEx2( PSYSTEM_POWER_STATUS_EX2 pSystemPowerStatusEx2, DWORD dwLen, BOOL fUpdate);
Parameters

pSystemPowerStatusEx2
[out] Pointer to a buffer that receives power status information.
dwLen
[in] Specifies the length of the buffer pointed to by pSystemPowerStatusEx2.
fUpdate
[in] Specify TRUE to get the latest information from the device driver. Specify FALSE to get cached information that may be out-of-date by several seconds.

Return Values

Length of the data returned in the pSystemPowerStatusEx2 buffer indicates success. Zero indicates failure.

Requirements

OS Versions: Windows CE 2.12 and later.Header: Winbase.h.Link Library: Coredll.lib.

See Also

SYSTEM_POWER_STATUS_EX2 | System Information Functions

Y Yanis Dalabiras

take a look at  the API GetSystemPowerStatusEx2

S Serge Larose

Thank you Paul

CONTACT
Can’t find what you’re looking for?