Platform SDK: Hardware

IsSystemResumeAutomatic

The IsSystemResumeAutomatic function indicates the current state of the computer.

BOOL IsSystemResumeAutomatic(VOID);

Parameters

This function has no parameters.

Return Values

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

  Windows NT/2000: Requires Windows 2000.
  Windows 95/98: Requires Windows 98.
  Header: Declared in Winbase.h; include Windows.h.
  Library: Use Kernel32.lib.

See Also

Power Management Overview, Power Management Functions, PBT_APMRESUMEAUTOMATIC, PBT_APMRESUMESUSPEND