PATCH: Thread execution state

Marcus Meissner Marcus.Meissner at caldera.de
Fri May 18 10:03:05 CDT 2001


Hi,

Changelog:
	enhanced SetThreadExecutionState stub.

Index: include/winnt.h
===================================================================
RCS file: /home/wine/wine/include/winnt.h,v
retrieving revision 1.88
diff -u -r1.88 winnt.h
--- include/winnt.h	2001/04/10 23:23:31	1.88
+++ include/winnt.h	2001/05/18 15:00:42
@@ -544,6 +544,12 @@
 #define PF_RDTSC_INSTRUCTION_AVAILABLE		8
 
 
+/* Execution state flags */
+#define ES_SYSTEM_REQUIRED	0x00000001
+#define ES_DISPLAY_REQUIRED	0x00000002
+#define ES_USER_PRESENT		0x00000004
+#define ES_CONTINUOUS		0x80000000
+
 /* The Win32 register context */
 
 /* CONTEXT is the CPU-dependent context; it should be used        */
Index: scheduler/thread.c
===================================================================
RCS file: /home/wine/wine/scheduler/thread.c,v
retrieving revision 1.99
diff -u -r1.99 thread.c
--- scheduler/thread.c	2001/05/08 00:13:39	1.99
+++ scheduler/thread.c	2001/05/18 15:00:42
@@ -767,8 +767,8 @@
  */ 
 EXECUTION_STATE WINAPI SetThreadExecutionState(EXECUTION_STATE flags)
 {
-    FIXME("(%ld): stub\n", flags);
-    return 0;
+    FIXME("(0x%lx): stub\n", flags);
+    return ES_SYSTEM_REQUIRED|ES_DISPLAY_REQUIRED|ES_USER_PRESENT;
 }
 
 




More information about the wine-patches mailing list