kernel32: Implemented GetSystemTimes

Martin Bailey martin at pcalpha.com
Sat Sep 13 19:59:47 CDT 2008


Hi,

Here's a small patch that enables some software to run under Wine,
namely software using GetSystemTimes to calculate CPU usage.
I would appreciate if anyone could complement it with IdleTime, since I
only implemented KernelTime and UserTime.
That would require subtracting Kernel+User of the calling process from
Kernel+User of the idle process.

Changelog:
 * Implemented kernel32 GetSystemTimes

---
 dlls/kernel32/kernel32.spec |    2 +-
 dlls/kernel32/time.c        |   35 +++++++++++++++++++++++++++++++++++
 include/winbase.h           |    1 +
 3 files changed, 37 insertions(+), 1 deletions(-)
---

Cheers,
Martin Bailey

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0001-Implemented-KERNEL32-GetSystemTimes.patch
Url: http://www.winehq.org/pipermail/wine-patches/attachments/20080913/68a13adb/attachment.txt 


More information about the wine-patches mailing list