Commit fb8934d4 authored by Slava Monich's avatar Slava Monich Committed by Alexandre Julliard

Implementation of Get/SetThreadPriorityBoost.

parent 1ada63bd
...@@ -892,7 +892,7 @@ import ntdll.dll ...@@ -892,7 +892,7 @@ import ntdll.dll
874 stdcall GetFileAttributesExA(str long ptr) GetFileAttributesExA 874 stdcall GetFileAttributesExA(str long ptr) GetFileAttributesExA
875 stdcall GetFileAttributesExW(wstr long ptr) GetFileAttributesExW 875 stdcall GetFileAttributesExW(wstr long ptr) GetFileAttributesExW
876 stub GetProcessPriorityBoost 876 stub GetProcessPriorityBoost
877 stub GetThreadPriorityBoost 877 stdcall GetThreadPriorityBoost(long ptr) GetThreadPriorityBoost
878 stdcall InterlockedCompareExchange (ptr long long) InterlockedCompareExchange 878 stdcall InterlockedCompareExchange (ptr long long) InterlockedCompareExchange
879 stdcall InterlockedExchangeAdd (ptr long ) InterlockedExchangeAdd 879 stdcall InterlockedExchangeAdd (ptr long ) InterlockedExchangeAdd
880 stdcall IsProcessorFeaturePresent(long) IsProcessorFeaturePresent 880 stdcall IsProcessorFeaturePresent(long) IsProcessorFeaturePresent
...@@ -908,7 +908,7 @@ import ntdll.dll ...@@ -908,7 +908,7 @@ import ntdll.dll
890 stdcall SetProcessAffinityMask(long long) SetProcessAffinityMask 890 stdcall SetProcessAffinityMask(long long) SetProcessAffinityMask
891 stdcall SetProcessPriorityBoost(long long) SetProcessPriorityBoost 891 stdcall SetProcessPriorityBoost(long long) SetProcessPriorityBoost
892 stub SetThreadIdealProcessor 892 stub SetThreadIdealProcessor
893 stub SetThreadPriorityBoost 893 stdcall SetThreadPriorityBoost(long long) SetThreadPriorityBoost
894 stdcall SetWaitableTimer(long ptr long ptr ptr long) SetWaitableTimer 894 stdcall SetWaitableTimer(long ptr long ptr ptr long) SetWaitableTimer
895 stub SignalObjectAndWait 895 stub SignalObjectAndWait
896 stub SwitchToFiber 896 stub SwitchToFiber
......
...@@ -1463,6 +1463,7 @@ INT WINAPI GetTimeFormatW(LCID,DWORD,LPSYSTEMTIME,LPCWSTR,LPWSTR,INT); ...@@ -1463,6 +1463,7 @@ INT WINAPI GetTimeFormatW(LCID,DWORD,LPSYSTEMTIME,LPCWSTR,LPWSTR,INT);
BOOL WINAPI GetThreadContext(HANDLE,CONTEXT *); BOOL WINAPI GetThreadContext(HANDLE,CONTEXT *);
LCID WINAPI GetThreadLocale(void); LCID WINAPI GetThreadLocale(void);
INT WINAPI GetThreadPriority(HANDLE); INT WINAPI GetThreadPriority(HANDLE);
BOOL WINAPI GetThreadPriorityBoost(HANDLE,PBOOL);
BOOL WINAPI GetThreadSelectorEntry(HANDLE,DWORD,LPLDT_ENTRY); BOOL WINAPI GetThreadSelectorEntry(HANDLE,DWORD,LPLDT_ENTRY);
BOOL WINAPI GetThreadTimes(HANDLE,LPFILETIME,LPFILETIME,LPFILETIME,LPFILETIME); BOOL WINAPI GetThreadTimes(HANDLE,LPFILETIME,LPFILETIME,LPFILETIME,LPFILETIME);
BOOL WINAPI GetTokenInformation(HANDLE,TOKEN_INFORMATION_CLASS,LPVOID,DWORD,LPDWORD); BOOL WINAPI GetTokenInformation(HANDLE,TOKEN_INFORMATION_CLASS,LPVOID,DWORD,LPDWORD);
...@@ -1612,6 +1613,7 @@ DWORD WINAPI SetThreadAffinityMask(HANDLE,DWORD); ...@@ -1612,6 +1613,7 @@ DWORD WINAPI SetThreadAffinityMask(HANDLE,DWORD);
BOOL WINAPI SetThreadContext(HANDLE,const CONTEXT *); BOOL WINAPI SetThreadContext(HANDLE,const CONTEXT *);
BOOL WINAPI SetThreadLocale(LCID); BOOL WINAPI SetThreadLocale(LCID);
BOOL WINAPI SetThreadPriority(HANDLE,INT); BOOL WINAPI SetThreadPriority(HANDLE,INT);
BOOL WINAPI SetThreadPriorityBoost(HANDLE,BOOL);
BOOL WINAPI SetThreadToken(PHANDLE,HANDLE); BOOL WINAPI SetThreadToken(PHANDLE,HANDLE);
BOOL WINAPI SetTimeZoneInformation(const LPTIME_ZONE_INFORMATION); BOOL WINAPI SetTimeZoneInformation(const LPTIME_ZONE_INFORMATION);
BOOL WINAPI SetWaitableTimer(HANDLE,const LARGE_INTEGER*,LONG,PTIMERAPCROUTINE,LPVOID,BOOL); BOOL WINAPI SetWaitableTimer(HANDLE,const LARGE_INTEGER*,LONG,PTIMERAPCROUTINE,LPVOID,BOOL);
......
...@@ -574,6 +574,42 @@ BOOL WINAPI SetThreadPriority( ...@@ -574,6 +574,42 @@ BOOL WINAPI SetThreadPriority(
/********************************************************************** /**********************************************************************
* GetThreadPriorityBoost [KERNEL32.877] Returns priority boost for thread.
*
* Always reports that priority boost is disabled.
*
* RETURNS
* Success: TRUE.
* Failure: FALSE
*/
BOOL WINAPI GetThreadPriorityBoost(
HANDLE hthread, /* [in] Handle to thread */
PBOOL pstate) /* [out] pointer to var that receives the boost state */
{
if (pstate) *pstate = FALSE;
return NO_ERROR;
}
/**********************************************************************
* SetThreadPriorityBoost [KERNEL32.893] Sets priority boost for thread.
*
* Priority boost is not implemented. Thsi function always returns
* FALSE and sets last error to ERROR_CALL_NOT_IMPLEMENTED
*
* RETURNS
* Always returns FALSE to indicate a failure
*/
BOOL WINAPI SetThreadPriorityBoost(
HANDLE hthread, /* [in] Handle to thread */
BOOL disable) /* [in] TRUE to disable priority boost */
{
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
return FALSE;
}
/**********************************************************************
* SetThreadAffinityMask (KERNEL32.669) * SetThreadAffinityMask (KERNEL32.669)
*/ */
DWORD WINAPI SetThreadAffinityMask( HANDLE hThread, DWORD dwThreadAffinityMask ) DWORD WINAPI SetThreadAffinityMask( HANDLE hThread, DWORD dwThreadAffinityMask )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment