IsSystemResumeAutomatic

[This is preliminary documentation and subject to change.]

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 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.

QuickInfo

  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.

See Also

Power Management Overview, Power Management Functions, PBT_APMRESUMEAUTOMATIC, PBT_APMRESUMESUSPEND