2008/9/14 Martin Bailey martin@pcalpha.com:
+VOID WINAPI GetSystemTimes(
- LPFILETIME lpIdleTime,
- LPFILETIME lpKernelTime,
- LPFILETIME lpUserTime)
+{
- struct tms tms;
- times(&tms);
- /* FIXME: Calculate based on Idle process time
- if (lpIdleTime)
TIME_ClockTimeToFileTime(tms.tms_utime+tms.tms_stime,lpIdleTime);
- */
You still have to set lpIdleTime to something, even if it isn't implemented yet, as applications will expect the value to be initialised.