Implemented PsGetProcessExitTime() and PsIsThreadTerminating().

svn path=/trunk/; revision=2409
This commit is contained in:
Eric Kohl 2001-11-29 16:41:22 +00:00
parent 3684c3d179
commit 6be5fe1285
4 changed files with 25 additions and 8 deletions

View file

@ -1,4 +1,4 @@
/* $Id: psfuncs.h,v 1.15 2001/11/21 18:44:09 ekohl Exp $
/* $Id: psfuncs.h,v 1.16 2001/11/29 16:39:45 ekohl Exp $
*/
#ifndef _INCLUDE_DDK_PSFUNCS_H
#define _INCLUDE_DDK_PSFUNCS_H
@ -63,6 +63,9 @@ BOOLEAN STDCALL PsGetVersion (PULONG MajorVersion OPTIONAL,
VOID STDCALL PsDispatchThread(ULONG NewThreadStatus);
LARGE_INTEGER STDCALL PsGetProcessExitTime(VOID);
BOOLEAN STDCALL PsIsThreadTerminating(struct _ETHREAD* Thread);
#endif
/* EOF */

View file

@ -1,4 +1,4 @@
; $Id: ntoskrnl.def,v 1.119 2001/11/21 18:44:50 ekohl Exp $
; $Id: ntoskrnl.def,v 1.120 2001/11/29 16:41:22 ekohl Exp $
;
; reactos/ntoskrnl/ntoskrnl.def
;
@ -596,11 +596,11 @@ PsDispatchThread@4
PsGetCurrentProcessId@0
PsGetCurrentThreadId@0
PsGetCurrentThread@0
;PsGetProcessExitTime@0
PsGetProcessExitTime@0
PsGetVersion@16
PsImpersonateClient@20
PsInitialSystemProcess DATA
;PsIsThreadTerminating@4
PsIsThreadTerminating@4
;PsLookupProcessByProcessId@8
;PsLookupProcessThreadByCid@12
;PsLookupThreadByThreadId@8

View file

@ -1,4 +1,4 @@
; $Id: ntoskrnl.edf,v 1.105 2001/11/21 18:44:50 ekohl Exp $
; $Id: ntoskrnl.edf,v 1.106 2001/11/29 16:41:22 ekohl Exp $
;
; reactos/ntoskrnl/ntoskrnl.def
;
@ -596,11 +596,11 @@ PsDispatchThread=PsDispatchThread@4
PsGetCurrentProcessId=PsGetCurrentProcessId@0
PsGetCurrentThreadId=PsGetCurrentThreadId@0
PsGetCurrentThread=PsGetCurrentThread@0
;PsGetProcessExitTime
PsGetProcessExitTime=PsGetProcessExitTime@0
PsGetVersion=PsGetVersion@16
PsImpersonateClient=PsImpersonateClient@20
PsInitialSystemProcess DATA
;PsIsThreadTerminating
PsIsThreadTerminating=PsIsThreadTerminating@4
;PsLookupProcessByProcessId
;PsLookupProcessThreadByCid
;PsLookupThreadByThreadId

View file

@ -1,4 +1,4 @@
/* $Id: process.c,v 1.69 2001/10/31 00:03:07 dwelch Exp $
/* $Id: process.c,v 1.70 2001/11/29 16:40:45 ekohl Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
@ -1099,4 +1099,18 @@ PiQuerySystemProcessInformation(PVOID Buffer,
#endif
}
LARGE_INTEGER STDCALL
PsGetProcessExitTime(VOID)
{
LARGE_INTEGER Li;
Li.QuadPart = PsGetCurrentProcess()->ExitTime.QuadPart;
return Li;
}
BOOLEAN STDCALL
PsIsThreadTerminating(IN PETHREAD Thread)
{
return(Thread->DeadThread);
}
/* EOF */