 |
SetSystemPowerState ..msdn Add comment W32 Constants Translate this page |
 |
 |
|
The SetSystemPowerState function suspends the system by shutting power down. Depending on the ForceFlag parameter, the function either suspends operation immediately or requests permission from all applications and device drivers before doing so. |
 |
 |
| Code examples: |
 |
|
|
 |
 |
| Declaration: |
 |
 |
BOOL SetSystemPowerState(
BOOL fSuspend,
BOOL fForce
);
|
 |
 |
 |
| FoxPro declaration: |
 |
 |
DECLARE INTEGER SetSystemPowerState IN kernel32;
INTEGER fSuspend,;
INTEGER fForce
|
 |
 |
 |
| Parameters: |
 |
fSuspend
[in] If this parameter is TRUE, the system is suspended. If the parameter is FALSE, the system hibernates.
fForce
[in] If this parameter is TRUE, the function broadcasts a PBT_APMSUSPEND event to each application and driver, then immediately suspends operation. If the parameter is FALSE, the function broadcasts a PBT_APMQUERYSUSPEND event to each application to request permission to suspend operation. |
 |
 |
| Return value: |
 |
| If power has been suspended and subsequently restored, the return value is nonzero. |
 |
 |
| My comment: |
 |
The first parameter is ignored in Windows Me/98/95.
This function is similar to the SetSuspendState function. |
 |
 |
| Word Index links for the SetSystemPowerState : |
 |
|
|
 |
 |
| Translate this page: |
 |
|
 |
 |
| • |
 |
| Created: | 2004-03-18 08:06:53 | | Modified: | 2006-01-13 20:26:05 | Visited in last 7 days: 11 |