IsSystemResumeAutomatic function (winbase.h)

Determines the current state of the computer.

Syntax

BOOL IsSystemResumeAutomatic();

Return value

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.

Remarks

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.

Requirements

Requirement Value
Minimum supported client Windows XP [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header winbase.h (include Windows.h)
Library Kernel32.lib
DLL Kernel32.dll

See also

PBT_APMRESUMEAUTOMATIC

PBT_APMRESUMESUSPEND

Power Management Functions