Range of possible return values taken from https://docs.microsoft.com/en-us/windows-hardware/drivers/ddi/wdm/nf-wdm-keq...
-- v3: ntoskrnl: Add KeQueryPriorityThread stub
From: Alexander Wilms f.alexander.wilms@gmail.com
Signed-off-by: Alexander Wilms f.alexander.wilms@gmail.com --- dlls/ntoskrnl.exe/ntoskrnl.c | 9 +++++++++ dlls/ntoskrnl.exe/ntoskrnl.exe.spec | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-)
diff --git a/dlls/ntoskrnl.exe/ntoskrnl.c b/dlls/ntoskrnl.exe/ntoskrnl.c index f3495796e23..085d0eebaef 100644 --- a/dlls/ntoskrnl.exe/ntoskrnl.c +++ b/dlls/ntoskrnl.exe/ntoskrnl.c @@ -2607,6 +2607,15 @@ ULONGLONG WINAPI KeQueryInterruptTime( void ) return totaltime.QuadPart; }
+/*********************************************************************** + * KeQueryPriorityThread (NTOSKRNL.EXE.@) + */ +KPRIORITY WINAPI KeQueryPriorityThread( PKTHREAD Thread ) +{ + FIXME("(%p): stub.\n", Thread); + /* priority must be a value between 0 and 31 */ + return 15; +}
/*********************************************************************** * KeQuerySystemTime (NTOSKRNL.EXE.@) diff --git a/dlls/ntoskrnl.exe/ntoskrnl.exe.spec b/dlls/ntoskrnl.exe/ntoskrnl.exe.spec index 8ae4bc1f5a9..8b0ee1c4b51 100644 --- a/dlls/ntoskrnl.exe/ntoskrnl.exe.spec +++ b/dlls/ntoskrnl.exe/ntoskrnl.exe.spec @@ -597,7 +597,7 @@ @ stdcall KeQueryActiveProcessors() @ stdcall KeQueryActiveProcessorCountEx(long) @ stdcall KeQueryInterruptTime() -@ stub KeQueryPriorityThread +@ stdcall KeQueryPriorityThread(ptr) @ stub KeQueryRuntimeThread @ stdcall KeQuerySystemTime(ptr) @ stdcall KeQueryTickCount(ptr)