Platform SDK: Hardware |
The IsSystemResumeAutomatic function indicates the current state of the computer.
BOOL IsSystemResumeAutomatic(VOID);
This function has no parameters.
If the system was restored to the working state automatically and the user is not active, the function returns TRUE. Otherwise, the function returns FALSE.
The PBT_APMRESUMEAUTOMATIC event is broadcast when the system wakes automatically to handle an event. The user is generally not present. If the system detects any user activity after broadcasting the PBT_APMRESUMEAUTOMATIC event, it will broadcast the PBT_APMRESUMESUSPEND event to let applications know they can resume full interaction with the user.
Windows NT/2000: Requires Windows 2000.
Windows 95/98: Requires Windows 98.
Header: Declared in Winbase.h; include Windows.h.
Library: Use Kernel32.lib.
Power Management Overview, Power Management Functions, PBT_APMRESUMEAUTOMATIC, PBT_APMRESUMESUSPEND