Added stub for SetThreadExecutionState (new function in Win98/2000).

This commit is contained in:
James Juran 2001-03-13 23:33:26 +00:00 committed by Alexandre Julliard
parent fafc6fbffe
commit 7313b78619
4 changed files with 15 additions and 0 deletions

View File

@ -951,6 +951,7 @@ debug_channels (comm debugstr dll int resource stress thunk toolhelp win32)
@ 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

View File

@ -1570,6 +1570,7 @@ DWORD WINAPI SetTapeParameters(HANDLE,DWORD,LPVOID);
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);

View File

@ -342,6 +342,7 @@ typedef LPCSTR PCTSTR, LPCTSTR;
typedef LONG HRESULT;
typedef DWORD LCID, *PLCID;
typedef WORD LANGID;
typedef DWORD EXECUTION_STATE;
/* Handle type */

View File

@ -755,6 +755,18 @@ BOOL WINAPI ProcessIdToSessionId( DWORD procid, DWORD *sessionid_ptr )
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__