Filip Navara NtGetTickCount implementation.

svn path=/trunk/; revision=9190
This commit is contained in:
James Tabor 2004-04-20 20:39:19 +00:00
parent 03cfbfef0a
commit 9acfed6d38
2 changed files with 11 additions and 14 deletions

View file

@ -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
);
/*

View file

@ -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
*/