1 out of 1 rated this helpful - Rate this topic

IsSystemResumeAutomatic function

Applies to: desktop apps only

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

Minimum supported server

Windows Server 2003

Header

Winbase.h (include Windows.h)

Library

Kernel32.lib

DLL

Kernel32.dll

See also

Power Management Functions
PBT_APMRESUMEAUTOMATIC
PBT_APMRESUMESUSPEND

 

 

Send comments about this topic to Microsoft

Build date: 2/7/2012

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ