kernel32: add a stub for QueryThreadCycleTime

Austin English austinenglish at gmail.com
Mon Mar 30 01:47:54 CDT 2015


https://bugs.winehq.org/show_bug.cgi?id=37960

-- 
-Austin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20150330/9edceaab/attachment.html>
-------------- next part --------------
diff --git a/dlls/kernel32/kernel32.spec b/dlls/kernel32/kernel32.spec
index 1179af2..23ce20b 100644
--- a/dlls/kernel32/kernel32.spec
+++ b/dlls/kernel32/kernel32.spec
@@ -1167,7 +1167,7 @@
 @ stdcall QueryPerformanceFrequency(ptr)
 # @ stub QueryProcessAffinityUpdateMode
 # @ stub QueryProcessCycleTime
-# @ stub QueryThreadCycleTime
+@ stdcall QueryThreadCycleTime(ptr ptr)
 # @ stub QueryThreadProfiling
 # @ stub QueryThreadpoolStackInformation
 # @ stub -arch=x86_64 QueryUmsThreadInformation
diff --git a/dlls/kernel32/time.c b/dlls/kernel32/time.c
index 2f7142b..565ea03 100644
--- a/dlls/kernel32/time.c
+++ b/dlls/kernel32/time.c
@@ -1105,6 +1105,18 @@ DWORD WINAPI GetDynamicTimeZoneInformation(PDYNAMIC_TIME_ZONE_INFORMATION info)
 }
 
 /***********************************************************************
+ *           QueryThreadCycleTime   (KERNEL32.@)
+ */
+BOOL WINAPI QueryThreadCycleTime(HANDLE thread, PULONG64 cycle)
+{
+    static int once;
+    if (!once++)
+        FIXME("(%p,%p,): Stub!\n", thread, cycle);
+    SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+    return FALSE;
+}
+
+/***********************************************************************
  *           QueryUnbiasedInterruptTime   (KERNEL32.@)
  */
 BOOL WINAPI QueryUnbiasedInterruptTime(ULONGLONG *time)
diff --git a/include/winbase.h b/include/winbase.h
index 58ed07c..82220c2 100644
--- a/include/winbase.h
+++ b/include/winbase.h
@@ -2294,6 +2294,7 @@ WINBASEAPI BOOL        WINAPI QueryInformationJobObject(HANDLE,JOBOBJECTINFOCLAS
 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 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 *);


More information about the wine-patches mailing list