mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 17:34:57 +00:00
Added Process HandleCount information.
svn path=/trunk/; revision=9223
This commit is contained in:
parent
375cb8f522
commit
772e31feb1
2 changed files with 17 additions and 3 deletions
|
@ -1,4 +1,4 @@
|
|||
/* $Id: sysinfo.c,v 1.30 2004/04/23 06:19:28 jimtabor Exp $
|
||||
/* $Id: sysinfo.c,v 1.31 2004/04/26 05:46:35 jimtabor Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS kernel
|
||||
|
@ -550,7 +550,7 @@ QSI_DEF(SystemProcessInformation)
|
|||
SpiCur->BasePriority = pr->Pcb.BasePriority;
|
||||
SpiCur->ProcessId = pr->UniqueProcessId;
|
||||
SpiCur->InheritedFromProcessId = (DWORD)(pr->InheritedFromUniqueProcessId);
|
||||
SpiCur->HandleCount = 0; // FIXME
|
||||
SpiCur->HandleCount = ObGetObjectHandleCount(pr);
|
||||
SpiCur->VmCounters.PeakVirtualSize = pr->PeakVirtualSize;
|
||||
SpiCur->VmCounters.VirtualSize = pr->VirtualSize.QuadPart;
|
||||
SpiCur->VmCounters.PageFaultCount = pr->LastFaultCount;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $Id: process.c,v 1.129 2004/04/18 06:08:36 jimtabor Exp $
|
||||
/* $Id: process.c,v 1.130 2004/04/26 05:46:35 jimtabor Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS kernel
|
||||
|
@ -1111,6 +1111,20 @@ NtQueryInformationProcess(IN HANDLE ProcessHandle,
|
|||
case ProcessWorkingSetWatch:
|
||||
case ProcessWx86Information:
|
||||
case ProcessHandleCount:
|
||||
if (ProcessInformationLength != sizeof(ULONG))
|
||||
{
|
||||
Status = STATUS_INFO_LENGTH_MISMATCH;
|
||||
}
|
||||
else
|
||||
{
|
||||
PULONG HandleCount = (PULONG)ProcessInformation;
|
||||
*HandleCount = ObGetObjectHandleCount(Process);
|
||||
if (ReturnLength)
|
||||
{
|
||||
*ReturnLength = sizeof(ULONG);
|
||||
}
|
||||
}
|
||||
break;
|
||||
case ProcessSessionInformation:
|
||||
case ProcessWow64Information:
|
||||
Status = STATUS_NOT_IMPLEMENTED;
|
||||
|
|
Loading…
Reference in a new issue