From 9acfed6d385519d701ffcc1e413e0560a0bffb18 Mon Sep 17 00:00:00 2001 From: James Tabor Date: Tue, 20 Apr 2004 20:39:19 +0000 Subject: [PATCH] Filip Navara NtGetTickCount implementation. svn path=/trunk/; revision=9190 --- reactos/include/ntos/zw.h | 6 +++--- reactos/ntoskrnl/ke/timer.c | 19 ++++++++----------- 2 files changed, 11 insertions(+), 14 deletions(-) diff --git a/reactos/include/ntos/zw.h b/reactos/include/ntos/zw.h index 00f770ae370..e66eba54a0d 100755 --- a/reactos/include/ntos/zw.h +++ b/reactos/include/ntos/zw.h @@ -1,5 +1,5 @@ -/* $Id: zw.h,v 1.22 2004/04/09 20:03:11 navaraf Exp $ +/* $Id: zw.h,v 1.23 2004/04/20 20:39:19 jimtabor Exp $ * * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS kernel @@ -4799,10 +4799,10 @@ NtFlushVirtualMemory( * UpTime = Number of clock ticks since boot. * RETURNS: Status */ -NTSTATUS +ULONG STDCALL NtGetTickCount( - PULONG UpTime + VOID ); /* diff --git a/reactos/ntoskrnl/ke/timer.c b/reactos/ntoskrnl/ke/timer.c index a3138134bc8..5cef98da22e 100644 --- a/reactos/ntoskrnl/ke/timer.c +++ b/reactos/ntoskrnl/ke/timer.c @@ -1,4 +1,4 @@ -/* $Id: timer.c,v 1.71 2004/04/18 00:52:57 jimtabor Exp $ +/* $Id: timer.c,v 1.72 2004/04/20 20:38:41 jimtabor Exp $ * * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS kernel @@ -236,21 +236,18 @@ KeQueryInterruptTime(PLARGE_INTEGER CurrentTime) } - -NTSTATUS STDCALL -NtGetTickCount (PULONG UpTime) +/* + * @implemented + */ +ULONG +STDCALL +NtGetTickCount(VOID) { LARGE_INTEGER TickCount; - if (UpTime == NULL) - { - return(STATUS_INVALID_PARAMETER); - } - KeQueryTickCount(&TickCount); - return(MmCopyToCaller(UpTime, &TickCount.u.LowPart, sizeof(*UpTime))); + return TickCount.u.LowPart; } - /* * @implemented */