implemented the SystemInterruptInformation information class to fill the structure with empty data to make process explorer shut up

svn path=/trunk/; revision=14064
This commit is contained in:
Thomas Bluemel 2005-03-14 16:04:12 +00:00
parent 3f89e7fa88
commit 9309c80c1b
4 changed files with 44 additions and 8 deletions

View file

@ -14,17 +14,17 @@ ARCH := i386
# be optimized for.
#
OARCH := i486
OARCH := i586
#
# Whether to compile in the kernel debugger
#
KDBG := 0
KDBG := 1
#
# Whether to compile for debugging
#
DBG := 0
DBG := 1
#
# Whether to compile a multiprocessor or single processor version

View file

@ -490,6 +490,19 @@ struct _SYSTEM_CACHE_INFORMATION
} SYSTEM_CACHE_INFORMATION;
// SystemInterruptInformation (23)
typedef
struct _SYSTEM_INTERRUPT_INFORMATION
{
ULONG ContextSwitches;
ULONG DpcCount;
ULONG DpcRate;
ULONG TimeIncrement;
ULONG DpcBypassCount;
ULONG ApcBypassCount;
} SYSTEM_INTERRUPT_INFORMATION, *PSYSTEM_INTERRUPT_INFORMATION;
// SystemDpcInformation (24)
typedef
struct _SYSTEM_DPC_INFORMATION

View file

@ -1017,12 +1017,35 @@ QSI_DEF(SystemPoolTagInformation)
return (STATUS_NOT_IMPLEMENTED);
}
/* Class 23 - Interrupt Information */
/* Class 23 - Interrupt Information for all processors */
QSI_DEF(SystemInterruptInformation)
{
/* FIXME */
DPRINT1("NtQuerySystemInformation - SystemInterruptInformation not implemented\n");
return (STATUS_NOT_IMPLEMENTED);
PKPRCB Prcb;
UINT i;
ULONG ti;
PSYSTEM_INTERRUPT_INFORMATION sii = (PSYSTEM_INTERRUPT_INFORMATION)Buffer;
if(Size < KeNumberProcessors * sizeof(SYSTEM_INTERRUPT_INFORMATION))
{
return (STATUS_INFO_LENGTH_MISMATCH);
}
ti = KeQueryTimeIncrement();
Prcb = ((PKPCR)KPCR_BASE)->Prcb;
for (i = 0; i < KeNumberProcessors; i++)
{
sii->ContextSwitches = Prcb->KeContextSwitches;
sii->DpcCount = 0; /* FIXME */
sii->DpcRate = 0; /* FIXME */
sii->TimeIncrement = ti;
sii->DpcBypassCount = 0; /* FIXME */
sii->ApcBypassCount = 0; /* FIXME */
sii++;
Prcb = (PKPRCB)((ULONG_PTR)Prcb + PAGE_SIZE);
}
return STATUS_SUCCESS;
}
/* Class 24 - DPC Behaviour Information */

View file

@ -102,7 +102,7 @@ typedef struct _KPRCB {
ULONG CcCopyReadWait;
ULONG CcCopyReadNoWaitMiss;
ULONG KeAlignmentFixupCount;
ULONG SpareCounter0;
ULONG KeContextSwitches;
ULONG KeDcacheFlushCount;
ULONG KeExceptionDispatchCount;
ULONG KeFirstLevelTbFills;