Added stub for SetThreadExecutionState (new function in Win98/2000).
diff --git a/dlls/kernel/kernel32.spec b/dlls/kernel/kernel32.spec
index dcca881..1b2e2fb 100644
--- a/dlls/kernel/kernel32.spec
+++ b/dlls/kernel/kernel32.spec
@@ -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
diff --git a/include/winbase.h b/include/winbase.h
index 661f86c..9b8ac1c 100644
--- a/include/winbase.h
+++ b/include/winbase.h
@@ -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);
diff --git a/include/winnt.h b/include/winnt.h
index a1428ce..fb430e1 100644
--- a/include/winnt.h
+++ b/include/winnt.h
@@ -342,6 +342,7 @@
typedef LONG HRESULT;
typedef DWORD LCID, *PLCID;
typedef WORD LANGID;
+typedef DWORD EXECUTION_STATE;
/* Handle type */
diff --git a/scheduler/thread.c b/scheduler/thread.c
index 6586088..512d6e8 100644
--- a/scheduler/thread.c
+++ b/scheduler/thread.c
@@ -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__