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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for