Post · 15 min read· pp. 1959–1969

SYSTEM_INFORMATION_CLASS

The SYSTEM_INFORMATION_CLASS (formally _SYSTEM_INFORMATION_CLASS) is an enumeration whose values are intended as input to the ZwQuerySystemInformation, ZwQuerySystemInformationEx and ZwSetSystemInformation functions (and to the corresponding forms whose names begin with Nt instead of Zw). Different values from the enumeration select different types of information to query or set.

Documentation Status

Microsoft has kept SYSTEM_INFORMATION_CLASS remarkably private. Analogues for information about files, processes, threads, and much else, have all their supported values defined in header files from as far back as the Device Driver Kit (DDK) for Windows NT 3.51. Even as late as the Windows Driver Kit (WDK) for Windows 10, however, SYSTEM_INFORMATION_CLASS has no C-language definition in any WDK header.

The closest that Microsoft has come to formal disclosure of the SYSTEM_INFORMATION_CLASS enumeration is some plainly reluctant documentation of NtQuerySystemInformation and a C-language definition of the enumeration in a header named WINTERNL.H file from the Software Development Kit (SDK) for user-mode programming. This header was added to the SDK in 2002, apparently for Microsoft’s compliance with a settlement concerning unfair use of internal Windows APIs by “middleware” products such as Internet Explorer. Better late than never, it might be argued, except that neither the documentation’s listing nor the header’s definition of SYSTEM_INFORMATION_CLASS is anywhere near complete. Perhaps Microsoft felt compelled to disclose only the cases that Microsoft found its middleware using, but whatever the reason, the disclosure was not so much partial as greatly reduced—from approximately two hundred to just nine, increased to 10 in the SDK for Windows 8.1, and to 12 for the documentation online as found today, 28th October 2016, but dating from who knows when.

Symbol Files

Microsoft’s names for all the SYSTEM_INFORMATION_CLASS values have slipped out, of course. As usual when it comes to Microsoft’s names for otherwise undocumented material, they’re knowable from type information in symbol files that Microsoft publishes for debugging support. Not at all usual is which symbol files: not for the kernel, where the enumeration is interpreted and the relevant functions are implemented; nor even for NTDLL or other such low-level user-mode modules that call the functions as their system-level support of the documented Win32 API; but for various higher-level user-mode DLLs that are far enough away from the system that they ought, if only in principle, not need any functionality that isn’t documented for everyone.

The most conspicuous is URLMON.DLL, for it is a component of Internet Explorer, i.e., of the most prominent “middleware” that compelled even the grudgingly partial disclosure in 2002. The symbol files that have been publicly available for URLMON since 2012 for Windows 8 through to Windows 10 before the 1803 release show that it is built not with the reduced SYSTEM_INFORMATION_CLASS from WINTERNL.H but with the whole thing. Indeed, the symbol files record that the whole definition was available to URLMON.DLL through its source code’s inclusion of a header named ntexapi.h which Microsoft is not known ever to have published for non-Microsoft programmers.

However URLMON was built in the years when Microsoft’s compliance with the settlement was reviewed by—it might be hoped—competent regulators, URLMON evidently is built now with more system-level knowledge of Windows than Microsoft publishes even for kernel-mode device driver programmers. Do not tell me that there was not at Microsoft somewhere some time someone who enjoyed mocking the government and courts over what Microsoft got away with on this. (I say this as criticism of the government and courts very much more than of Microsoft.)

For no known reason, the public symbol files for URLMON in the 1803 release have no type information at all, but SYSTEM_INFORMATION_CLASS continues to be disclosed in other symbol files, e.g., for OLE32.DLL.

Libraries

Much further back, it turns out that type information for the SYSTEM_INFORMATION_CLASS was disclosed in statically linked libraries that Microsoft distributed with early DDKs: a GDISRVL.LIB in the DDK for Windows NT 3.51; and SHELL32.LIB in the DDK for Windows NT 4.0. That the latter is otherwise just an import library for SHELL32.DLL suggests strongly that these disclosures were one-off oversights. Still, published they were.

Another statically linked library that helps fill some gaps is CLFSMGMT.LIB which Microsoft distributes with the Software Development Kit (SDK) for user-mode programming, starting with Windows Vista. This too was surely an oversight, but it’s as openly published as any other programming resource.

Enumeration

Of the very many defined cases, some can be used successfully only to query or only to set. Some can’t usefully be called either way—at least, not in all versions. The present purpose however is not to show which values are implemented non-trivially in which versions, but which values are defined in which versions, as much as can be known from material that Microsoft has published (whether intending a disclosure or not). For version 6.2 and higher, the type information in symbol files is surely definitive. The early form of type information that can be found in a few import libraries for versions 3.51 and 4.0 is here taken as definitive also, as is type information from CLFSMGMT.LIB for 32-bit versions 6.0 and 6.1, though all with some caution since libraries need not be built with exactly the same headers as were the operating systems that they target. What names are defined for other versions is something of a guess from trying to match the implementations in the binary code with the names as known from type information for other versions. Some of the resulting editorial decisions, mostly about the versions in between, i.e., 5.0 to 5.2, are explained after the table.

Some information classes were introduced or changed in service-pack releases. The following shorthands are used below:

  • late 5.0 starts with Windows 2000 SP4;
  • late 5.1 starts with Windows XP SP2;
  • very late 5.1 starts with Windows XP SP3;
  • late 5.2 starts with Windows Server 2003 SP1;
  • late 6.0 starts with Windows Vista SP1;
  • late 6.1 starts with Windows 7 SP1.

As usual for this website, names that look to be undocumented are highlighted yellow. For information classes that are documented, I do not trouble over any finer shading of whether the documentation was available immediately. After all, for very few of these is the documentation anywhere near to looking even vaguely substantial enough to be worth having, whether contemporaneously or years late.

ValueNameVersionsRemarks
0x00SystemBasicInformationall
0x01SystemProcessorInformationall
0x02SystemPerformanceInformationall
0x03SystemTimeOfDayInformationall
0x04SystemPathInformationall
0x05SystemProcessInformationall
0x06SystemCallCountInformationall
0x07SystemDeviceInformationall
0x08SystemProcessorPerformanceInformationall
0x09SystemFlagsInformationall
0x0ASystemCallTimeInformationall
0x0BSystemModuleInformationall
0x0CSystemLocksInformationall
0x0DSystemStackTraceInformationall
0x0ESystemPagedPoolInformationall
0x0FSystemNonPagedPoolInformationall
0x10SystemHandleInformationall
0x11SystemObjectInformationall
0x12SystemPageFileInformationall
0x13SystemVdmInstemulInformationall
0x14SystemVdmBopInformationall
0x15SystemFileCacheInformationall
0x16SystemPoolTagInformation3.50 and higher
0x17SystemSpare1Information3.50 onlysupposed name
SystemInterruptInformation3.51 and higher
0x18SystemSpare2Information3.50 onlysupposed name
SystemDpcBehaviorInformation3.51 and higher
0x19SystemSpare3Information3.50 to 3.51
SystemFullMemoryInformation4.0 and higher
0x1ASystemSpare4Information3.50 onlysupposed name
SystemLoadGdiDriverInformation3.51 and higher
0x1BSystemSpare5Information3.50 onlysupposed name
SystemUnloadGdiDriverInformation3.51 and higher
0x1CSystemTimeAdjustmentInformation3.50 and higher
0x1DSystemSpare6Information3.50 to 3.51
SystemSummaryMemoryInformation4.0 and higher
0x1ESystemNextEventIdInformation3.50 to 4.0
unknown5.0 only
SystemMirrorMemoryInformation5.1 and higher
0x1FSystemEventIdsInformation3.50 to 4.0
unknown5.0 to 5.2
SystemPerformanceTraceInformation6.0 and higher
0x20SystemCrashDumpInformation3.50 to 5.0
SystemObsolete05.1 and higher
0x21SystemExceptionInformation3.50 and higher
0x22SystemCrashDumpStateInformation3.50 and higher
0x23SystemKernelDebuggerInformation3.50 and higher
0x24SystemContextSwitchInformation3.50 and higher
0x25SystemRegistryQuotaInformation3.51 and higher
0x26SystemExtendServiceTableInformation3.51 and higher
0x27SystemPrioritySeperation3.51 and higher
0x28SystemPlugPlayBusInformation3.51 to 4.0
unknown5.0 only
SystemVerifierAddDriverInformation5.1 and higher
0x29SystemDockInformation3.51 to 4.0
unknown5.0 only
SystemVerifierRemoveDriverInformation5.1 and higher
0x2ASystemPowerInformation3.51 to 5.0
SystemProcessorIdleInformation5.1 and higher
0x2BSystemProcessorSpeedInformation3.51 to 4.0
SystemLegacyDriverInformation5.0 and higher
0x2CSystemCurrentTimeZoneInformation4.0 and higher
0x2DSystemLookasideInformation4.0 and higher
0x2ESystemTimeSlipNotification5.0 and higher
0x2FSystemSessionCreate5.0 and higher
0x30SystemSessionDetach5.0 and higher
0x31SystemSessionInformation5.0 and higher
0x32SystemRangeStartInformation5.0 and higher
0x33SystemVerifierInformation5.0 and higher
0x34SystemVerifierThunkExtend5.0 and higher
0x35SystemSessionProcessInformation5.0 and higher
0x36SystemObjectSecurityModelate 5.0 onlylater as 0x46
SystemLoadGdiDriverInSystemSpace5.1 and higher
0x37unknownlate 5.0 onlylater as 0x47
SystemNumaProcessorMap5.1 and higher
0x38SystemPrefetcherInformation5.1 and higher
0x39SystemExtendedProcessInformation5.1 and higher
0x3ASystemRecommendedSharedDataAlignment5.1 and higher
0x3BSystemComPlusPackage5.1 and higher
0x3CSystemNumaAvailableMemory5.1 and higher
0x3DSystemProcessorPowerInformation5.1 and higher
0x3ESystemEmulationBasicInformation5.1 and higher
0x3FSystemEmulationProcessorInformation5.1 and higher
0x40SystemExtendedHandleInformation5.1 and higher
0x41SystemLostDelayedWriteInformation5.1 and higher
0x42unknownlate 5.1 only
SystemBigPoolInformation5.2 and higher
0x43SystemSessionPoolTagInformation5.2 and higher
0x44SystemSessionMappedViewInformation5.2 and higher
0x45SystemHotpatchInformationlate 5.1 and higher
0x46SystemObjectSecurityModelate 5.1 and higherearlier as 0x36
0x47unknownlate 5.1 onlyearlier as 0x37
SystemWatchdogTimerHandler5.2 and higher
0x48SystemWatchdogTimerInformation5.2 and higher
0x49SystemLogicalProcessorInformationvery late 5.1 and higher
0x4ASystemWow64SharedInformationObsoletelate 5.2 and higher
0x4BSystemRegisterFirmwareTableInformationHandlerlate 5.2 and higher
0x4CSystemFirmwareTableInformationlate 5.2 and higher
0x4DSystemModuleInformationEx6.0 and higher
0x4ESystemVerifierTriageInformation6.0 and higher
0x4FSystemSuperfetchInformation6.0 and higher
0x50SystemMemoryListInformation6.0 and higher
0x51SystemFileCacheInformationExlate 5.2 and higher
0x52SystemThreadPriorityClientIdInformation6.0 and higher
0x53SystemProcessorIdleCycleTimeInformation6.0 and higher
0x54SystemVerifierCancellationInformation6.0 and higher
0x55SystemProcessorPowerInformationEx6.0 and higher
0x56SystemRefTraceInformation6.0 and higher
0x57SystemSpecialPoolInformation6.0 and higher
0x58SystemProcessIdInformation6.0 and higher
0x59SystemErrorPortInformation6.0 and higher
0x5ASystemBootEnvironmentInformation6.0 and higher
0x5BSystemHypervisorInformation6.0 and higher
0x5CSystemVerifierInformationEx6.0 and higher
0x5DSystemTimeZoneInformation6.0 and higher
0x5ESystemImageFileExecutionOptionsInformation6.0 and higher
0x5FSystemCoverageInformation6.0 and higher
0x60SystemPrefetchPatchInformation6.0 and higher
0x61SystemVerifierFaultsInformation6.0 and higher
0x62SystemSystemPartitionInformation6.0 and higher
0x63SystemSystemDiskInformation6.0 and higher
0x64SystemProcessorPerformanceDistribution6.0 and higher
0x65SystemNumaProximityNodeInformation6.0 and higher
0x66SystemDynamicTimeZoneInformation6.0 and higher
0x67SystemCodeIntegrityInformation6.0 and higher
0x68SystemProcessorMicrocodeUpdateInformation6.0 and higher
0x69SystemProcessorBrandStringlate 6.0 and higher
0x6ASystemVirtualAddressInformationlate 6.0 and higher
0x6BSystemLogicalProcessorAndGroupInformation6.1 and higher
0x6CSystemProcessorCycleTimeInformation6.1 and higher
0x6DSystemStoreInformation6.1 and higher
0x6ESystemRegistryAppendString6.1 and higher
0x6FSystemAitSamplingValue6.1 and higher
0x70SystemVhdBootInformation6.1 and higher
0x71SystemCpuQuotaInformation6.1 and higher
0x72SystemNativeBasicInformation6.1 and higher
0x73SystemErrorPortTimeouts6.1 and higher
0x74SystemLowPriorityIoInformation6.1 and higher
0x75SystemBootEntropyInformation6.1 and higher
0x76SystemVerifierCountersInformation6.1 and higher
0x77SystemPagedPoolInformationEx6.1 and higher
0x78SystemSystemPtesInformationEx6.1 and higher
0x79SystemNodeDistanceInformation6.1 and higher
0x7ASystemAcpiAuditInformation6.1 and higher
0x7BSystemBasicPerformanceInformation6.1 and higher
0x7CSystemQueryPerformanceCounterInformationlate 6.1 and higher
0x7DSystemSessionBigPoolInformation6.2 and higher
0x7ESystemBootGraphicsInformation6.2 and higher
0x7FSystemScrubPhysicalMemoryInformation6.2 and higher
0x80SystemBadPageInformation6.2 and higher
0x81SystemProcessorProfileControlArea6.2 and higher
0x82SystemCombinePhysicalMemoryInformation6.2 and higher
0x83SystemEntropyInterruptTimingInformation6.2 and higher
0x84SystemConsoleInformation6.2 and higher
0x85SystemPlatformBinaryInformation6.2 and higher
0x86SystemThrottleNotificationInformation6.2 only
SystemPolicyInformation6.3 and higher
0x87SystemHypervisorProcessorCountInformation6.2 and higher
0x88SystemDeviceDataInformation6.2 and higher
0x89SystemDeviceDataEnumerationInformation6.2 and higher
0x8ASystemMemoryTopologyInformation6.2 and higher
0x8BSystemMemoryChannelInformation6.2 and higher
0x8CSystemBootLogoInformation6.2 and higher
0x8DSystemProcessorPerformanceInformationEx6.2 and higher
0x8ESystemSpare06.2 to 1511
SystemCriticalProcessErrorLogInformation1607 and higher
0x8FSystemSecureBootPolicyInformation6.2 and higher
0x90SystemPageFileInformationEx6.2 and higher
0x91SystemSecureBootInformation6.2 and higher
0x92SystemEntropyInterruptTimingRawInformation6.2 and higher
0x93SystemPortableWorkspaceEfiLauncherInformation6.2 and higher
0x94SystemFullProcessInformation6.2 and higher
0x95SystemKernelDebuggerInformationEx6.3 and higher
0x96SystemBootMetadataInformation6.3 and higher
0x97SystemSoftRebootInformation6.3 and higher
0x98SystemElamCertificateInformation6.3 and higher
0x99SystemOfflineDumpConfigInformation6.3 and higher
0x9ASystemProcessorFeaturesInformation6.3 and higher
0x9BSystemRegistryReconciliationInformation6.3 and higher
0x9CSystemEdidInformation6.3 and higher
0x9DSystemManufacturingInformation10.0 and higher
0x9ESystemEnergyEstimationConfigInformation10.0 and higher
0x9FSystemHypervisorDetailInformation10.0 and higher
0xA0SystemProcessorCycleStatsInformation10.0 and higher
0xA1SystemVmGenerationCountInformation10.0 and higher
0xA2SystemTrustedPlatformModuleInformation10.0 and higher
0xA3SystemKernelDebuggerFlags10.0 and higher
0xA4SystemCodeIntegrityPolicyInformation10.0 and higher
0xA5SystemIsolatedUserModeInformation10.0 and higher
0xA6SystemHardwareSecurityTestInterfaceResultsInformation10.0 and higher
0xA7SystemSingleModuleInformation10.0 and higher
0xA8SystemAllowedCpuSetsInformation10.0 and higher
0xA9SystemDmaProtectionInformation10.0 and higher
0xAASystemInterruptCpuSetsInformation10.0 and higher
0xABSystemSecureBootPolicyFullInformation10.0 and higher
0xACSystemCodeIntegrityPolicyFullInformation10.0 and higher
0xADSystemAffinitizedInterruptProcessorInformation10.0 and higher
0xAESystemRootSiloInformation10.0 and higher
0xAFSystemCpuSetInformation10.0 and higher
0xB0SystemCpuSetTagInformation10.0 and higher
0xB1SystemWin32WerStartCallout1511 and higher
0xB2SystemSecureKernelProfileInformation1511 and higher
0xB3SystemCodeIntegrityPlatformManifestInformation1607 and higher
0xB4SystemInterruptSteeringInformation1607 and higher
0xB5SystemSuppportedProcessorArchitectures1607 and higher
0xB6SystemMemoryUsageInformation1607 and higher
0xB7SystemCodeIntegrityCertificateInformation1607 and higher
0xB8SystemPhysicalMemoryInformation1703 and higher
0xB9SystemControlFlowTransition1703 and higher
0xBASystemKernelDebuggingAllowed1703 and higher
0xBBSystemActivityModerationExeState1703 and higher
0xBCSystemActivityModerationUserSettings1703 and higher
0xBDSystemCodeIntegrityPoliciesFullInformation1703 and higher
0xBESystemCodeIntegrityUnlockInformation1703 and higher
0xBFSystemIntegrityQuotaInformation1703 and higher
0xC0SystemFlushInformation1703 and higher
0xC1SystemProcessorIdleMaskInformation1709 and higher
0xC2SystemSecureDumpEncryptionInformation1709 and higher
0xC3SystemWriteConstraintInformation1709 and higher
0xC4SystemKernelVaShadowInformation1803 and higher
0xC5SystemHypervisorSharedPageInformation1803 and higher
0xC6SystemFirmwareBootPerformanceInformation1803 and higher
0xC7SystemCodeIntegrityVerificationInformation1803 and higher
0xC8SystemFirmwarePartitionInformation1803 and higher
0xC9SystemSpeculationControlInformation1803 and higher
0xCASystemDmaGuardPolicyInformation1803 and higher
0xCBSystemEnclaveLaunchControlInformation1803 and higher
0xCCSystemWorkloadAllowedCpuSetsInformation1809 and higher
0xCDSystemCodeIntegrityUnlockModeInformation1809 and higher
0xCESystemLeapSecondInformation1809 and higher
0xCFSystemFlags2Information1809 and higher
0xD0SystemSecurityModelInformation1903 and higher
0xD1SystemCodeIntegritySyntheticCacheInformation1903 and higher
0xD2SystemFeatureConfigurationInformation2004 and higher
0xD3SystemFeatureConfigurationSectionInformation2004 and higher
0xD4SystemFeatureUsageSubscriptionInformation2004 and higher
0xD5SystemSecureSpeculationControlInformation2004 and higher
0x69 (6.0); 0x6B (late 6.0); 0x7C (6.1); 0x7D (late 6.1); 0x95 (6.2); 0x9D (6.3); 0xB1 (10.0); 0xB3 (1511); 0xB8 (1607); 0xC1 (1703); 0xC4 (1709); 0xCC (1803); 0xD0 (1809); 0xD2 (1903); 0xD6MaxSystemInfoClass

Though SystemCallTimeInformation (0x0A) is shown above as original, it is invalid in version 3.10. It plausibly was not yet named or had some other name to mark it explicitly as spare or perhaps was implemented only in debug builds or even in private builds that Microsoft kept for its own testing during development. Version 3.50 changes it from invalid to not implemented, i.e., so that it returns STATUS_NOT_IMPLEMENTED instead of STATUS_INVALID_INFO_CLASS, which is how it remains even now. This is here taken to mean that if it was not yet defined for version 3.10 then it was for 3.50. That information classes can be defined even when invalid is established by SystemVdmBopInformation (0x14), which appears in type information both old and new even though the information class is invalid in all known versions.

On the other hand, type information for version 3.51 establishes that Microsoft did have a naming scheme to indicate explicitly that an invalid information class is spare. The numbering in the known names SystemSpare3Information (0x19) and SystemSpare6Information (0x1D) of information classes that were still invalid in version 3.51 is naturally explained by hypothesising SystemSpare1Information (0x17), SystemSpare2Information (0x18), SystemSpare4Information (0x1A) and SystemSpare5Information (0x1B) for nearby information classes that have non-trivial implementations (and meaningful names) in version 3.51 but which the version 3.50 rejects as invald.

Exactly when SystemNextEventIdInformation (0x1E) and SystemEventIdsInformation (0x1F) got new names is unclear. That they had these names for versions 3.51 and 4.0 is certain from type information, but both are explicitly not implemented in versions 3.50 to 4.0. Version 5.0 changed both to invalid. Non-trivial implementations came with version 6.0 and are consistent with names that are known from type information. But while invalid did they retain their old names, or get spare names, or no names at all, or get the new names ahead of a released implementation?

Contrast with SystemCrashDumpInformation (0x20) which never has been reassigned since it was made invalid in version 5.1. It is known to have been renamed to SystemObsolete0 in time for version 6.0, but exactly when is not known.

The spelling of SystemPrioritySeperation (0x27) is Microsoft’s.

Though both SystemPlugPlayBusInformation (0x28) and SystemDockInformation (0x29) are explicitly not implemented in versions 3.51 and 4.0, these names have the certainty of type information. Version 5.0 re-implemented them as invalid until new use was found in version 5.1. What they were named meanwhile is not known. Similar considerations apply to SystemPowerInformation (0x2A) except that this information class is invalid even in the versions 3.51 and 4.0 for which the name is known. It is still invalid in version 5.0, and so the name is thought to have persisted.

The information class SystemSessionInformation (0x31) is another that is invalid in all known versions. Its known name for version 6.0 and higher is here thought to be contemporaneous with the nearby information classes that also deal with sessions.

Information classes 0x36 and 0x37 are valid in the version 5.0 from Windows 2000 SP4 but their implementations do not match the names that are known from later type information. They do instead match the later SystemObjectSecurityMode (0x46) and the trivially successful information class 0x47 as implemented in the version 5.1 from Windows XP SP2. It is here thought that the additions for Windows XP SP2 were appended to the Windows 2000 enumeration when back-fitting to the roughly contemporaneous Windows 2000 SP4. Whether the diferent numbering for different versions was intended or is just a side-effect of carelessly writing a conditional compilation block is not known.

Information class 0x42 cannot be SystemBigPoolInformation before version 5.2. It becomes valid in the version 5.1 from Windows XP SP2 but as an alias for SystemObjectSecurityMode (0x46).

The change of name for case 0x86 is what’s shown in the symbol files. The implementation in version 6.2 is consistent with SystemPolicyInformation in subsequent versions. The original name, SystemThrottleNotificationInformation, at best remains from some other use that was dropped during development.

It is not known when Microsoft started ending the enumeration with MaxSystemInfoClass. The name is established in the type information for version 6.0 and higher but is absent from type information for versions 3.51 and 4.0.