PlatformSetSystemPowerState (Windows CE 5.0)
This function reads and verifies the system power state information from the registry and updates all devices appropriately.
DWORD WINAPI PlatformSetSystemPowerState(LPCSTSTR pszName, BOOL fForce, BOOL fInternal);
Parameters
- pszName
System power state name. - fForce
Force flag. - fInternal
Internal flag.
Return Values
- ERROR_SUCCESS
This function was successful. - Win32 error code
All other errors.
Remarks
This function always updates all device power states in order to be consistent with the pszName parameter. The Power Manager may carry out other tasks as well, depending on the system power state. For example, suspending the system or sending messages to applications. In addition, the Power Manager may carry out platform-specific tasks associated with the system power state transition.
Requirements
OS Versions: Windows CE .NET 4.0 and later.
Header: Pmimpl.h.
Link Library: Coredll.lib.
See Also
Send Feedback on this topic to the authors