mirror of
https://github.com/reactos/reactos.git
synced 2025-01-04 21:38:43 +00:00
Update query thread times.
svn path=/trunk/; revision=10402
This commit is contained in:
parent
68a3b15468
commit
b1a51402e2
1 changed files with 21 additions and 3 deletions
|
@ -1,4 +1,4 @@
|
|||
/* $Id: tinfo.c,v 1.25 2004/03/19 12:45:07 ekohl Exp $
|
||||
/* $Id: tinfo.c,v 1.26 2004/08/05 11:38:01 jimtabor Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS kernel
|
||||
|
@ -254,8 +254,26 @@ NtQueryInformationThread (IN HANDLE ThreadHandle,
|
|||
}
|
||||
|
||||
case ThreadTimes:
|
||||
Status = STATUS_NOT_IMPLEMENTED;
|
||||
break;
|
||||
{
|
||||
PKERNEL_USER_TIMES TTI;
|
||||
|
||||
TTI = (PKERNEL_USER_TIMES)ThreadInformation;
|
||||
|
||||
if (ThreadInformationLength != sizeof(KERNEL_USER_TIMES))
|
||||
{
|
||||
Status = STATUS_INFO_LENGTH_MISMATCH;
|
||||
break;
|
||||
}
|
||||
|
||||
TTI->KernelTime.QuadPart = Thread->Tcb.KernelTime * 100000LL;
|
||||
TTI->UserTime.QuadPart = Thread->Tcb.UserTime * 100000LL;
|
||||
TTI->CreateTime = (TIME) Thread->CreateTime;
|
||||
/*This works*/
|
||||
TTI->ExitTime = (TIME) Thread->u1.ExitTime;
|
||||
|
||||
Status = STATUS_SUCCESS;
|
||||
break;
|
||||
}
|
||||
|
||||
case ThreadPriority:
|
||||
/* Can be set only */
|
||||
|
|
Loading…
Reference in a new issue