-/* $Id: qsi.c,v 1.6 2001/01/14 20:16:37 ea Exp $
+/* $Id: qsi.c,v 1.7 2001/07/12 11:58:57 ekohl Exp $
*
* PROJECT : ReactOS Operating System (see http://www.reactos.com/)
* DESCRIPTION: Tool to query system information
PrintStatus (Status);
return EXIT_FAILURE;
}
- printf (" Reserved 0x%08x\n", Info.Reserved);
- printf (" TimerResolution %d\n", Info.TimerResolution);
- printf (" PageSize %d\n", Info.PageSize);
- printf (" NumberOfPhysicalPages %d\n", Info.NumberOfPhysicalPages);
- printf (" LowestPhysicalPageNumber %d\n", Info.LowestPhysicalPageNumber);
- printf (" HighestPhysicalPageNumber %d\n", Info.HighestPhysicalPageNumber);
- printf (" AllocationGranularity %d\n", Info.AllocationGranularity);
- printf (" MinimumUserModeAddress 0x%08x (%d)\n", Info.MinimumUserModeAddress, Info.MinimumUserModeAddress);
- printf (" MaximumUserModeAddress 0x%08x (%d)\n", Info.MaximumUserModeAddress, Info.MaximumUserModeAddress);
- printf (" ActiveProcessorsAffinityMask 0x%08x\n", Info.ActiveProcessorsAffinityMask);
+ printf (" Reserved 0x%08lx\n", Info.Reserved);
+ printf (" TimerResolution %ld\n", Info.TimerResolution);
+ printf (" PageSize %ld\n", Info.PageSize);
+ printf (" NumberOfPhysicalPages %ld\n", Info.NumberOfPhysicalPages);
+ printf (" LowestPhysicalPageNumber %ld\n", Info.LowestPhysicalPageNumber);
+ printf (" HighestPhysicalPageNumber %ld\n", Info.HighestPhysicalPageNumber);
+ printf (" AllocationGranularity %ld\n", Info.AllocationGranularity);
+ printf (" MinimumUserModeAddress 0x%08lx (%ld)\n", Info.MinimumUserModeAddress, Info.MinimumUserModeAddress);
+ printf (" MaximumUserModeAddress 0x%08lx (%ld)\n", Info.MaximumUserModeAddress, Info.MaximumUserModeAddress);
+ printf (" ActiveProcessorsAffinityMask 0x%08lx\n", Info.ActiveProcessorsAffinityMask);
printf (" NumberOfProcessors %d\n", (int) Info.NumberOfProcessors);
return EXIT_SUCCESS;
printf (" ProcessorLevel %d\n", Info.ProcessorLevel);
printf (" ProcessorRevision %d\n", Info.ProcessorRevision);
printf (" Reserved 0x%08x\n", Info.Reserved);
- printf (" FeatureBits %08x\n", Info.ProcessorFeatureBits);
+ printf (" FeatureBits %08lx\n", Info.ProcessorFeatureBits);
/* FIXME: decode feature bits */
return EXIT_SUCCESS;
PrintUtcDateTime (" CurrentTime %s\n", (PTIME) & Info.CurrentTime);
PrintUtcDateTime (" TimeZoneBias %s\n", (PTIME) & Info.TimeZoneBias); /* FIXME */
printf (" TimeZoneId %ld\n", Info.TimeZoneId);
- printf (" Reserved %08x\n", Info.Reserved);
+ printf (" Reserved %08lx\n", Info.Reserved);
return EXIT_SUCCESS;
}
PrintUtcDateTime (" TotalDPCTime : %s\n", & Info.TotalDPCTime);
PrintUtcDateTime (" TotalInterruptTime : %s\n", & Info.TotalInterruptTime);
printf (" TotalInterrupts : %ld\n", Info.TotalInterrupts);
- printf (" Unused : %08x\n", Info.Unused);
+ printf (" Unused : %08lx\n", Info.Unused);
return EXIT_SUCCESS;
}
PrintStatus (Status);
return EXIT_FAILURE;
}
- printf (" NtGlobalFlag: %08x\n", Info.Flags);
+ printf (" NtGlobalFlag: %08lx\n", Info.Flags);
if (FLG_STOP_ON_EXCEPTION & Info.Flags) printf ("\tSTOP_ON_EXCEPTION\n");
if (FLG_STOP_ON_HANG_GUI & Info.Flags) printf ("\tSTOP_ON_HANG_GUI\n");
if (FLG_SHOW_LDR_SNAPS & Info.Flags) printf ("\tSHOW_LDR_SNAPS\n");
)
{
printf (
- "%8x %08x %8x %s\n",
- pInfo->Module[Index].ModuleEntryIndex,
- pInfo->Module[Index].ModuleBaseAddress,
- pInfo->Module[Index].ModuleSize,
- pInfo->Module[Index].ModuleName
+ "%8lx %8p %8lx %s\n",
+ pInfo->Module[Index].EntryIndex,
+ pInfo->Module[Index].BaseAddress,
+ pInfo->Module[Index].Size,
+ pInfo->Module[Index].Name
);
}
printf (hr);
)
{
printf (
- "%08x %8ld %8ld %8ld %8ld %08x\n",
+ "%08lx %8ld %8ld %8ld %8ld %08lx\n",
pInfo->Lock[Index].ResourceAddress,
pInfo->Lock[Index].ActiveCount,
pInfo->Lock[Index].ContentionCount,
)
{
printf (
- "%8x %8x %8x %8x %s %s\n",
+ "%8x %8lx %8p %8lx %s %s\n",
pInfo->Handle[Index].HandleValue,
pInfo->Handle[Index].OwnerPid,
pInfo->Handle[Index].ObjectPointer,
CMD_DEF(28)
{
NTSTATUS Status = STATUS_SUCCESS;
- SYSTEM_TIME_ADJUSTMENT_INFO Info;
+ SYSTEM_QUERY_TIME_ADJUSTMENT Info;
RtlZeroMemory (& Info, sizeof Info);
Status = NtQuerySystemInformation (
PrintStatus (Status);
return EXIT_FAILURE;
}
- printf ("\tKeTimeAdjustment = %ld\n", Info.KeTimeAdjustment);
- printf ("\tKeMaximumIncrement = %ld\n", Info.KeMaximumIncrement);
- printf ("\tKeTimeSynchronization = %s\n", TF(Info.KeTimeSynchronization));
+ printf ("\tKeTimeAdjustment = %ld\n", Info.TimeAdjustment);
+ printf ("\tKeMaximumIncrement = %ld\n", Info.MaximumIncrement);
+ printf ("\tKeTimeSynchronization = %s\n", TF(Info.TimeSynchronization));
return EXIT_SUCCESS;
}
return EXIT_FAILURE;
}
printf (
- " Bias........: %d'\n",
+ " Bias........: %ld'\n",
Tzi.Bias /* LONG */
);
(PTIME) & Tzi.StandardDate /* SYSTEMTIME */
);
- printf ("\tBias: %d'\n",
+ printf ("\tBias: %ld'\n",
Tzi.StandardBias /* LONG */
);
);
printf (
- "\tBias: %d'\n",
+ "\tBias: %ld'\n",
Tzi.DaylightBias /* LONG */
);