SetThreadExecutionState stub

James Juran jamesjuran at alumni.psu.edu
Sun Mar 11 17:02:17 CST 2001


ChangeLog:
	* James Juran <jamesjuran at alumni.psu.edu>
	Add stub for SetThreadExecutionState
	(new function in Win98/2000).

Index: include/winnt.h
===================================================================
RCS file: /home/wine/wine/include/winnt.h,v
retrieving revision 1.86
diff -u -r1.86 winnt.h
--- include/winnt.h	2001/02/28 05:18:54	1.86
+++ include/winnt.h	2001/03/11 22:23:47
@@ -342,6 +342,7 @@
 typedef LONG            HRESULT;
 typedef DWORD           LCID,       *PLCID;
 typedef WORD            LANGID;
+typedef DWORD		EXECUTION_STATE;
 
 /* Handle type */
 
Index: include/winbase.h
===================================================================
RCS file: /home/wine/wine/include/winbase.h,v
retrieving revision 1.105
diff -u -r1.105 winbase.h
--- include/winbase.h	2001/03/10 19:15:04	1.105
+++ include/winbase.h	2001/03/11 22:23:48
@@ -1570,6 +1570,7 @@
 DWORD       WINAPI SetTapePosition(HANDLE,DWORD,DWORD,DWORD,DWORD,BOOL);
 DWORD       WINAPI SetThreadAffinityMask(HANDLE,DWORD);
 BOOL        WINAPI SetThreadContext(HANDLE,const CONTEXT *);
+DWORD       WINAPI SetThreadExecutionState(EXECUTION_STATE);
 BOOL        WINAPI SetThreadLocale(LCID);
 BOOL        WINAPI SetThreadPriority(HANDLE,INT);
 BOOL        WINAPI SetThreadPriorityBoost(HANDLE,BOOL);
Index: dlls/kernel/kernel32.spec
===================================================================
RCS file: /home/wine/wine/dlls/kernel/kernel32.spec,v
retrieving revision 1.30
diff -u -r1.30 kernel32.spec
--- dlls/kernel/kernel32.spec	2001/02/26 22:33:29	1.30
+++ dlls/kernel/kernel32.spec	2001/03/11 22:23:48
@@ -951,6 +951,7 @@
 @ stdcall PrivateLoadLibrary(str) PrivateLoadLibrary
 @ stdcall PrivateFreeLibrary(long) PrivateFreeLibrary
 @ stdcall Get16DLLAddress(long str) Get16DLLAddress
+@ stdcall SetThreadExecutionState(long) SetThreadExecutionState
 
 # Windows 2000, Terminal Server 4.0 SP4 functions
 @ stdcall GetSystemWindowsDirectoryA(ptr long) GetSystemWindowsDirectoryA
Index: scheduler/thread.c
===================================================================
RCS file: /home/wine/wine/scheduler/thread.c,v
retrieving revision 1.95
diff -u -r1.95 thread.c
--- scheduler/thread.c	2001/03/08 01:16:42	1.95
+++ scheduler/thread.c	2001/03/11 22:23:48
@@ -755,6 +755,18 @@
 	return TRUE;
 }
 
+/***********************************************************************
+ * SetThreadExecutionState (KERNEL32.@)
+ *
+ * Informs the system that activity is taking place for
+ * power management purposes.
+ */ 
+EXECUTION_STATE WINAPI SetThreadExecutionState(EXECUTION_STATE flags)
+{
+    FIXME("(%ld): stub\n", flags);
+    return 0;
+}
+
 
 #ifdef __i386__
 




More information about the wine-patches mailing list