[This is preliminary documentation and subject to change.]
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 message is sent when the system wakes automatically to handle an event. The user is generally not present. If the system detects any user activity after sending the PBT_APMRESUMEAUTOMATIC message, it will send the PBT_APMRESUMESUSPEND message to let applications know they can resume full interaction with the user.
Windows NT: Requires version 5.0 or later.
Windows: Requires Windows 98.
Windows CE: Unsupported.
Header: Declared in winbase.h.
Import Library: Use kernel32.lib.
Power Management Overview, Power Management Functions, PBT_APMRESUMEAUTOMATIC, PBT_APMRESUMESUSPEND