[PATCH 12/14] kernel32: Add QueryUmsThreadInformation stub
Alistair Leslie-Hughes
leslie_alistair at hotmail.com
Sun Mar 4 22:00:07 CST 2018
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
---
dlls/kernel32/kernel32.spec | 2 +-
dlls/kernel32/process.c | 11 +++++++++++
include/winbase.h | 1 +
3 files changed, 13 insertions(+), 1 deletion(-)
diff --git a/dlls/kernel32/kernel32.spec b/dlls/kernel32/kernel32.spec
index 23bd0b4..e358075 100644
--- a/dlls/kernel32/kernel32.spec
+++ b/dlls/kernel32/kernel32.spec
@@ -1175,7 +1175,7 @@
@ stdcall QueryThreadCycleTime(long ptr)
# @ stub QueryThreadProfiling
# @ stub QueryThreadpoolStackInformation
-# @ stub -arch=x86_64 QueryUmsThreadInformation
+@ stdcall -arch=x86_64 QueryUmsThreadInformation(ptr long ptr long ptr)
@ stdcall QueryUnbiasedInterruptTime(ptr)
@ stub QueryWin31IniFilesMappedToRegistry
@ stdcall QueueUserAPC(ptr long long)
diff --git a/dlls/kernel32/process.c b/dlls/kernel32/process.c
index 3a8b9af..499d303 100644
--- a/dlls/kernel32/process.c
+++ b/dlls/kernel32/process.c
@@ -4332,6 +4332,17 @@ BOOL WINAPI GetUmsCompletionListEvent(PUMS_COMPLETION_LIST list, HANDLE *event)
return FALSE;
}
+/***********************************************************************
+ * QueryUmsThreadInformation (KERNEL32.@)
+ */
+BOOL WINAPI QueryUmsThreadInformation(PUMS_CONTEXT ctx, UMS_THREAD_INFO_CLASS class,
+ void *buf, ULONG length, ULONG *ret_length)
+{
+ FIXME( "%p,%08x,%p,%08x,%p: stub\n", ctx, class, buf, length, ret_length );
+ SetLastError( ERROR_CALL_NOT_IMPLEMENTED );
+ return FALSE;
+}
+
/**********************************************************************
* BaseFlushAppcompatCache (KERNEL32.@)
*/
diff --git a/include/winbase.h b/include/winbase.h
index a752d69..cff15b0 100644
--- a/include/winbase.h
+++ b/include/winbase.h
@@ -2488,6 +2488,7 @@ WINBASEAPI BOOL WINAPI QueryMemoryResourceNotification(HANDLE,PBOOL);
WINBASEAPI BOOL WINAPI QueryPerformanceCounter(LARGE_INTEGER*);
WINBASEAPI BOOL WINAPI QueryPerformanceFrequency(LARGE_INTEGER*);
WINBASEAPI BOOL WINAPI QueryThreadCycleTime(HANDLE,PULONG64);
+WINBASEAPI BOOL WINAPI QueryUmsThreadInformation(PUMS_CONTEXT,UMS_THREAD_INFO_CLASS,PVOID,ULONG,PULONG);
WINBASEAPI DWORD WINAPI QueueUserAPC(PAPCFUNC,HANDLE,ULONG_PTR);
WINBASEAPI BOOL WINAPI QueueUserWorkItem(LPTHREAD_START_ROUTINE,PVOID,ULONG);
WINBASEAPI void WINAPI RaiseException(DWORD,DWORD,DWORD,const ULONG_PTR *);
--
1.9.1
More information about the wine-devel
mailing list