 |
GetSystemPowerStatus ..msdn Add comment W32 Constants Translate this page |
 |
 |
|
Retrieves the power status of the system. The status indicates whether the system is running on AC or DC power, whether the battery is currently charging, and how much battery life remains. |
 |
 |
| Code examples: |
 |
|
|
 |
 |
| Declaration: |
 |
 |
BOOL GetSystemPowerStatus(
LPSYSTEM_POWER_STATUS lpSystemPowerStatus
);
|
 |
 |
 |
| FoxPro declaration: |
 |
 |
DECLARE INTEGER GetSystemPowerStatus IN kernel32;
STRING @lpSystemPowerStatus
|
 |
 |
 |
| Parameters: |
 |
lpSystemPowerStatus
[out] Pointer to a SYSTEM_POWER_STATUS structure that receives status information. |
 |
 |
| Return value: |
 |
| If the function succeeds, the return value is nonzero. |
 |
 |
| Word Index links for the GetSystemPowerStatus : |
 |
|
|
 |
 |
| Translate this page: |
 |
|
 |
 |
| • |
 |
| Created: | 2003-03-17 17:01:28 | | Modified: | 2006-01-13 20:25:07 | Visited in last 7 days: 18 |