diff --git a/dlls/kernel32/kernel32.spec b/dlls/kernel32/kernel32.spec index 98e0fa03945..c2f7bc201bc 100644 --- a/dlls/kernel32/kernel32.spec +++ b/dlls/kernel32/kernel32.spec @@ -649,7 +649,7 @@ @ stdcall GetThreadContext(long ptr) @ stdcall GetThreadErrorMode() @ stdcall GetThreadId(ptr) -# @ stub GetThreadIOPendingFlag +@ stdcall GetThreadIOPendingFlag(long ptr) @ stdcall GetThreadLocale() @ stdcall GetThreadPriority(long) @ stdcall GetThreadPriorityBoost(long ptr) diff --git a/dlls/kernel32/thread.c b/dlls/kernel32/thread.c index 691ef027d78..bddf37d3604 100644 --- a/dlls/kernel32/thread.c +++ b/dlls/kernel32/thread.c @@ -796,3 +796,13 @@ LANGID WINAPI GetThreadUILanguage( void ) FIXME(": stub, returning default language.\n"); return lang; } + +/*********************************************************************** + * GetThreadIOPendingFlag (KERNEL32.@) + */ +BOOL WINAPI GetThreadIOPendingFlag( HANDLE thread, PBOOL io_pending ) +{ + FIXME("%p, %p\n", thread, io_pending); + *io_pending = FALSE; + return TRUE; +} diff --git a/include/winbase.h b/include/winbase.h index a233a0a9078..1222beca515 100644 --- a/include/winbase.h +++ b/include/winbase.h @@ -1775,6 +1775,7 @@ WINBASEAPI DWORD WINAPI GetTempPathA(DWORD,LPSTR); WINBASEAPI DWORD WINAPI GetTempPathW(DWORD,LPWSTR); #define GetTempPath WINELIB_NAME_AW(GetTempPath) WINBASEAPI DWORD WINAPI GetThreadId(HANDLE); +WINBASEAPI BOOL WINAPI GetThreadIOPendingFlag(HANDLE,PBOOL); WINBASEAPI DWORD WINAPI GetTickCount(void); WINBASEAPI ULONGLONG WINAPI GetTickCount64(void); WINBASEAPI DWORD WINAPI GetTimeZoneInformation(LPTIME_ZONE_INFORMATION);