Robert Solomon
May 13th 03, 01:00 AM
I am interested in using this call in Modula-2 as defined in WIN32.DEF.
TYPE
EXECUTION_STATE = DWORD;
PROCEDURE SetThreadExecutionState(esFlags : EXECUTION_STATE) :
EXECUTION_STATE;
But the values of EXECUTION_STATE are not defined anywhere that I can
see. According to Microsoft, the allowable values are:
ES_SYSTEM_REQUIRED Informs the system that the thread is performing some
operation that is not normally detected as activity by the system.
ES_DISPLAY_REQUIRED Informs the system that the thread is performing
some operation that is not normally detected as display activity by the
system.
ES_USER_PRESENT Informs the system that a user is present. If a user is
present, the system will use the power policy settings set by the user.
Otherwise, the system does not wake the display device and will return
to the sleeping state as soon as possible.
ES_CONTINUOUS Informs the system that the state being set should remain
in effect until the next call that uses ES_CONTINUOUS and one of the
other state flags is cleared.
Requirements
Client: Included in Windows XP, Windows 2000 Professional, Windows Me,
and Windows 98.
Server: Included in Windows Server 2003 and Windows 2000 Server.
Header: Declared in Winbase.h; include Windows.h.
Library: Use Kernel32.lib.
How can I use this function in Stony Brook Modula-2?
Thanks,
Rob
TYPE
EXECUTION_STATE = DWORD;
PROCEDURE SetThreadExecutionState(esFlags : EXECUTION_STATE) :
EXECUTION_STATE;
But the values of EXECUTION_STATE are not defined anywhere that I can
see. According to Microsoft, the allowable values are:
ES_SYSTEM_REQUIRED Informs the system that the thread is performing some
operation that is not normally detected as activity by the system.
ES_DISPLAY_REQUIRED Informs the system that the thread is performing
some operation that is not normally detected as display activity by the
system.
ES_USER_PRESENT Informs the system that a user is present. If a user is
present, the system will use the power policy settings set by the user.
Otherwise, the system does not wake the display device and will return
to the sleeping state as soon as possible.
ES_CONTINUOUS Informs the system that the state being set should remain
in effect until the next call that uses ES_CONTINUOUS and one of the
other state flags is cleared.
Requirements
Client: Included in Windows XP, Windows 2000 Professional, Windows Me,
and Windows 98.
Server: Included in Windows Server 2003 and Windows 2000 Server.
Header: Declared in Winbase.h; include Windows.h.
Library: Use Kernel32.lib.
How can I use this function in Stony Brook Modula-2?
Thanks,
Rob