 |
CeGetSystemPowerStatusEx ..msdn Add comment W32 Constants Translate this page |
 |
 |
|
This function retrieves the power status of the system. |
 |
 |
| Code examples: |
 |
|
|
 |
 |
| Declaration: |
 |
 |
BOOL CeGetSystemPowerStatusEx(
PSYSTEM_POWER_STATUS_EX pstatus,
BOOL fUpdate
);
|
 |
 |
 |
| FoxPro declaration: |
 |
 |
DECLARE INTEGER CeGetSystemPowerStatusEx IN rapi;
STRING @ pstatus,;
INTEGER fUpdate
|
 |
 |
 |
| Parameters: |
 |
pstatus
[out] Pointer to the SYSTEM_POWER_STATUS_EX structure receiving the power status information.
fUpdate
[in] If this Boolean is set to TRUE, CeGetSystemPowerStatusEx gets the latest information from the device driver, otherwise it retrieves cached information that may be out-of-date by several seconds. |
 |
 |
| Return value: |
 |
| This function returns TRUE if successful; otherwise, it returns FALSE. |
 |
 |
| My comment: |
 |
| The status indicates whether the system is running on AC or DC power, whether or not the batteries are currently charging, and the remaining life of main and backup batteries. |
 |
 |
| Word Index links for the CeGetSystemPowerStatusEx : |
 |
|
|
 |
 |
| Translate this page: |
 |
|
 |
 |
| • |
 |
| Created: | 2004-06-25 11:25:32 | | Modified: | 2004-06-25 11:27:20 | Visited in last 7 days: 16 |