GetSystemPowerStatusEx2
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
Runs on | Versions | Defined in | Include | Link to |
---|---|---|---|---|
Windows CE OS | 2.12 and later | Winbase.h | Getpower.lib |
Note This API is part of the complete Windows CE OS package as provided by Microsoft. The functionality of a particular platform is determined by the original equipment manufacturer (OEM) and some devices may not support this API.
See Also
Last updated on Tuesday, July 13, 2004
© 1992-2000 Microsoft Corporation. All rights reserved.