Expand Minimize

IsSystemResumeAutomatic function

Determines the current state of the computer.

Syntax


BOOL WINAPI IsSystemResumeAutomatic(void);

Parameters

This function has no parameters.

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

Minimum supported client

Windows XP [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Winbase.h (include Windows.h)

Library

Kernel32.lib

DLL

Kernel32.dll

See also

Power Management Functions
PBT_APMRESUMEAUTOMATIC
PBT_APMRESUMESUSPEND

 

 

Community Additions

ADD
Show:
© 2014 Microsoft