Commit 05ab8b98 authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

ntdll: Add stub implementation of NtQueryInformationThread(ThreadIsIoPending).

parent 6737ac70
......@@ -1969,6 +1969,7 @@ todo_wine
case ThreadAffinityMask:
case ThreadQuerySetWin32StartAddress:
case ThreadIsIoPending:
todo_wine
ok(status == STATUS_ACCESS_DENIED, "for info %u expected STATUS_ACCESS_DENIED, got %08x (ret_len %u)\n", i, status, ret_len);
break;
......
......@@ -918,8 +918,17 @@ LANGID WINAPI GetThreadUILanguage( void )
*/
BOOL WINAPI GetThreadIOPendingFlag( HANDLE thread, PBOOL io_pending )
{
FIXME("%p, %p\n", thread, io_pending);
*io_pending = FALSE;
NTSTATUS status;
TRACE("%p, %p\n", thread, io_pending);
status = NtQueryInformationThread( thread, ThreadIsIoPending,
io_pending, sizeof(*io_pending), NULL );
if (status)
{
SetLastError( RtlNtStatusToDosError(status) );
return FALSE;
}
return TRUE;
}
......
......@@ -1157,6 +1157,14 @@ NTSTATUS WINAPI NtQueryInformationThread( HANDLE handle, THREADINFOCLASS class,
}
}
return status;
case ThreadIsIoPending:
FIXME( "ThreadIsIoPending info class not supported yet\n" );
if (length != sizeof(BOOL)) return STATUS_INFO_LENGTH_MISMATCH;
if (!data) return STATUS_ACCESS_DENIED;
*(BOOL*)data = FALSE;
if (ret_len) *ret_len = sizeof(BOOL);
return STATUS_SUCCESS;
case ThreadPriority:
case ThreadBasePriority:
case ThreadImpersonationToken:
......@@ -1167,7 +1175,6 @@ NTSTATUS WINAPI NtQueryInformationThread( HANDLE handle, THREADINFOCLASS class,
case ThreadIdealProcessor:
case ThreadPriorityBoost:
case ThreadSetTlsArrayAddress:
case ThreadIsIoPending:
default:
FIXME( "info class %d not supported yet\n", class );
return STATUS_NOT_IMPLEMENTED;
......
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