Post · 9 min read· pp. 2472–2478

NTEXAPI.H

The public symbol file NTKRPAMP.PDB for the original release of Windows 10 tells that the kernel is built with the NTEXAPI.H header at

d:\th.public.fre\internal\sdk\inc

and draws from it the type definitions that are tabulated below. The header NTEXAPI.H is not known in any Device Driver Kit (DDK) or Windows Driver Kit (WDK).

Line NumberType
2846struct _PEBS_DS_SAVE_AREA
2861struct _PROCESSOR_PROFILE_CONTROL_AREA
4049struct _WNF_STATE_NAME

Though only three of the types that are defined in NTEXAPI.H show in the public symbol files for the kernel, hundreds show in symbol files for other modules. Some of these others are kernel-mode drivers, especially for processor power management. Some are user-mode DLLs. Among these are some that are very far removed from system programming, e.g., URLMON.DLL from Internet Explorer. Though the symbol files in question are in effect private symbol files, Microsoft has published them freely in downloadable packages of all the public symbol files for all of Windows, starting with Windows 8. If inclusion of these unusually detailed symbol files in these packages was at first an oversight, it has been left to stand for years, though not for all modules. For instance, it ceased for URLMON.DLL after the 1709 edition of Windows 10.

To anyone with a working knowledge of the documented structures and enumerations for user-mode interaction with the kernel, the types defined in this NTEXAPI.H header that Microsoft keeps very much to itself are an obvious treasure trove. For the record, then, here are the very many types that Microsoft’s freely published URLMON.PDB reveals were accessible to the source code for URLMON.DLL from including NTEXAPI.H when building for the original release of 32-bit Windows 10:

Line NumberType
113struct _FILE_PATH
131struct _WINDOWS_OS_OPTIONS
144struct _BOOT_ENTRY
169struct _BOOT_OPTIONS
218struct _BOOT_ENTRY_LIST
278struct _EFI_DRIVER_ENTRY
288struct _EFI_DRIVER_ENTRY_LIST
351enum _EVENT_INFORMATION_CLASS
359struct _EVENT_BASIC_INFORMATION
528enum _MUTANT_INFORMATION_CLASS
537struct _MUTANT_BASIC_INFORMATION
543struct _MUTANT_OWNER_INFORMATION
597enum _SEMAPHORE_INFORMATION_CLASS
605struct _SEMAPHORE_BASIC_INFORMATION
662enum _TIMER_INFORMATION_CLASS
670struct _TIMER_BASIC_INFORMATION
679struct _T2_SET_PARAMETERS_V0
1152enum _SYSTEM_INFORMATION_CLASS
1337struct _SYSTEM_VDM_INSTEMUL_INFO
1374struct _SYSTEM_TIMEOFDAY_INFORMATION
1394struct _SYSTEM_BASIC_INFORMATION
1410struct _SYSTEM_BASIC_INFORMATION64
1426struct _SYSTEM_PROCESSOR_INFORMATION
1434struct _SYSTEM_PROCESSOR_PERFORMANCE_INFORMATION
1443struct _SYSTEM_PROCESSOR_PERFORMANCE_INFORMATION_EX
1478struct _SYSTEM_PROCESSOR_PERFORMANCE_HITCOUNT
1483struct _SYSTEM_PROCESSOR_PERFORMANCE_STATE_DISTRIBUTION
1489struct _SYSTEM_PROCESSOR_PERFORMANCE_DISTRIBUTION
1494struct _SYSTEM_PROCESSOR_IDLE_INFORMATION
1519struct _SYSTEM_NUMA_PROXIMITY_MAP
1524struct _SYSTEM_NUMA_INFORMATION
1534struct _SYSTEM_PROCESSOR_POWER_INFORMATION
1557struct _SYSTEM_ENERGY_ESTIMATION_CONFIG_INFORMATION
1561struct _SYSTEM_PROCESSOR_CYCLE_STATS_INFORMATION
1565struct _SYSTEM_QUERY_TIME_ADJUST_INFORMATION
1571struct _SYSTEM_SET_TIME_ADJUST_INFORMATION
1576struct _SYSTEM_BASIC_PERFORMANCE_INFORMATION
1583struct _SYSTEM_PERFORMANCE_INFORMATION
1674struct _SYSTEM_PROCESS_INFORMATION
1711struct _SYSTEM_PROCESS_INFORMATION_EXTENSION
1728struct _SYSTEM_SESSION_PROCESS_INFORMATION
1734struct _SYSTEM_THREAD_INFORMATION
1748struct _SYSTEM_EXTENDED_THREAD_INFORMATION
1759struct _SYSTEM_PROCESS_ID_INFORMATION
1764struct _SYSTEM_CALL_COUNT_INFORMATION
1771struct _SYSTEM_DEVICE_DATA_INFORMATION
1779struct _SYSTEM_DEVICE_INFORMATION
1788struct _SYSTEM_EXCEPTION_INFORMATION
1795struct _SYSTEM_KERNEL_DEBUGGER_INFORMATION
1800struct _SYSTEM_KERNEL_DEBUGGER_INFORMATION_EX
1806struct _SYSTEM_KERNEL_DEBUGGER_FLAGS
1810struct _SYSTEM_REGISTRY_QUOTA_INFORMATION
1816struct _SYSTEM_GDI_DRIVER_INFORMATION
1825struct _SYSTEM_REF_TRACE_INFORMATION
1832struct _SYSTEM_MEMORY_LIST_INFORMATION
1843struct _SYSTEM_MEMORY_INFORMATION
1854struct _SYSTEM_WORKINGSET_ENTRY
1868enum _SYSTEM_MEMORY_LIST_COMMAND
1878struct _SYSTEM_PREFETCH_OPTIONS
1889struct _SYSTEM_PREFETCH_STATS
1902struct _SYSTEM_FLAGS_INFORMATION
1906struct _SYSTEM_CALL_TIME_INFORMATION
1912struct _SYSTEM_HANDLE_TABLE_ENTRY_INFO
1922struct _SYSTEM_HANDLE_INFORMATION
1927struct _SYSTEM_HANDLE_TABLE_ENTRY_INFO_EX
1938struct _SYSTEM_HANDLE_INFORMATION_EX
1944struct _SYSTEM_OBJECTTYPE_INFORMATION
1958struct _SYSTEM_OBJECT_INFORMATION
1973struct _SYSTEM_PAGEFILE_INFORMATION
1981struct _SYSTEM_PAGEFILE_INFORMATION_EX
1987struct _SYSTEM_VERIFIER_INFORMATION
2015struct _SYSTEM_VERIFIER_COUNTERS_INFORMATION
2045enum _VERIFIER_MODE
2065struct _SYSTEM_VERIFIER_INFORMATION_EX
2084struct _SYSTEM_VERIFIER_TRIAGE_INFORMATION
2092struct _SYSTEM_VERIFIER_ISSUE
2100struct _SYSTEM_VERIFIER_CANCELLATION_INFORMATION
2109struct _SYSTEM_VERIFIER_FAULTS_INFORMATION
2116struct _MEMORY_SCRUB_INFORMATION
2121struct _MEMORY_COMBINE_INFORMATION
2126struct _SYSTEM_ROOT_SILO_INFORMATION
2135struct _SYSTEM_ENTROPY_TIMING_INFORMATION
2146struct _SYSTEM_FILECACHE_INFORMATION
2158struct _SYSTEM_THREAD_CID_PRIORITY_INFORMATION
2163struct _SYSTEM_PROCESSOR_IDLE_CYCLE_TIME_INFORMATION
2169struct _SYSTEM_SPECIAL_POOL_INFORMATION
2176struct _SYSTEM_IMAGE_FILE_EXECUTION_OPTIONS_INFORMATION
2185enum _WATCHDOG_HANDLER_ACTION
2199enum _WATCHDOG_INFORMATION_CLASS
2210struct _SYSTEM_WATCHDOG_TIMER_INFORMATION
2215struct _SYSTEM_POLICY_INFORMATION
2228struct _SYSTEM_POOL_ENTRY
2240struct _SYSTEM_POOL_INFORMATION
2250struct _SYSTEM_POOLTAG
2263struct _SYSTEM_BIGPOOL_ENTRY
2281struct _SYSTEM_POOLTAG_INFORMATION
2286struct _SYSTEM_SESSION_POOLTAG_INFORMATION
2293struct _SYSTEM_BIGPOOL_INFORMATION
2298struct _SYSTEM_SESSION_BIGPOOL_INFORMATION
2305struct _SYSTEM_SESSION_MAPPED_VIEW_INFORMATION
2313struct _SYSTEM_VA_LIST_INFORMATION
2320enum _SYSTEM_VA_TYPE
2330struct _SYSTEM_CONTEXT_SWITCH_INFORMATION
2345struct _SYSTEM_INTERRUPT_INFORMATION
2354struct _SYSTEM_DPC_BEHAVIOR_INFORMATION
2364struct _SYSTEM_LOOKASIDE_INFORMATION
2376struct _SYSTEM_LEGACY_DRIVER_INFORMATION
2386struct _SYSTEM_BOOT_ENVIRONMENT_INFORMATION_V1
2391struct _SYSTEM_BOOT_ENVIRONMENT_INFORMATION
2407enum _SYSTEM_CRASH_DUMP_CONFIGURATION_CLASS
2413struct _SYSTEM_CRASH_DUMP_STATE_INFORMATION
2417struct _SYSTEM_HYPERVISOR_QUERY_INFORMATION
2425struct _HV_DETAILS
2429struct _SYSTEM_HYPERVISOR_DETAIL_INFORMATION
2439struct _SYSTEM_DMA_PROTECTION_INFORMATION
2444struct _SYSTEM_ISOLATED_USER_MODE_INFORMATION
2456struct _SYSTEM_SINGLE_MODULE_INFORMATION
2463struct _SYSTEM_PROCESSOR_POLICY_INFORMATION
2471struct _COVERAGE_UNLOADED_MODULE_ENTRY
2479struct _COVERAGE_MODULE_INFO
2491enum _COVERAGE_REQUEST_CODES
2497struct _COVERAGE_MODULE_REQUEST
2499unnamed union for SearchInfo in _COVERAGE_MODULE_REQUEST
2512struct _COVERAGE_MODULES
2519struct _SYSTEM_PREFETCH_PATCH_INFORMATION
2527struct _SYSTEM_SYSTEM_PARTITION_INFORMATION
2531struct _SYSTEM_SYSTEM_DISK_INFORMATION
2555struct _SYSTEM_CODEINTEGRITY_INFORMATION
2567struct _SYSTEM_PROCESSOR_MICROCODE_UPDATE_INFORMATION
2576struct _SYSTEM_REGISTRY_APPEND_STRING_PARAMETERS
2593struct _SYSTEM_VHD_BOOT_INFORMATION
2603struct _SYSTEM_LOW_PRIORITY_IO_INFORMATION
2620struct _SYSTEM_PLATFORM_BINARY_INFORMATION
2632struct _SYSTEM_ACPI_AUDIT_INFORMATION
2647struct _QUERY_PERFORMANCE_COUNTER_FLAGS
2658struct _SYSTEM_QUERY_PERFORMANCE_COUNTER_INFORMATION
2664struct _SYSTEM_HYPERVISOR_PROCESSOR_COUNT_INFORMATION
2678enum _BOOT_ENTROPY_SOURCE_RESULT_CODE
2686enum _BOOT_ENTROPY_SOURCE_ID
2729struct _BOOT_ENTROPY_SOURCE_NT_RESULT
2739struct _BOOT_ENTROPY_NT_RESULT
2746enum _SYSTEM_PIXEL_FORMAT
2762struct _SYSTEM_BOOT_GRAPHICS_INFORMATION
2777struct _SYSTEM_BOOT_LOGO_INFORMATION
2787struct _SYSTEM_SECUREBOOT_POLICY_INFORMATION
2793struct _SYSTEM_SECUREBOOT_POLICY_FULL_INFORMATION
2803struct _SYSTEM_SECUREBOOT_INFORMATION
2825struct _SYSTEM_TPM_INFORMATION
2833struct _SYSTEM_PORTABLE_WORKSPACE_EFI_LAUNCHER_INFORMATION
2846struct _PEBS_DS_SAVE_AREA
2861struct _PROCESSOR_PROFILE_CONTROL_AREA
2871struct _SYSTEM_PROCESSOR_PROFILE_CONTROL_AREA
2880struct _SYSTEM_CONSOLE_INFORMATION
2891struct _SYSTEM_ERROR_PORT_TIMEOUTS
2905struct _SYSTEM_ELAM_CERTIFICATE_INFORMATION
2913struct _SYSTEM_PROCESSOR_FEATURES_INFORMATION
2924struct _SYSTEM_MANUFACTURING_INFORMATION
2944struct _SYSTEM_CODEINTEGRITYPOLICY_INFORMATION
2957struct _SYSTEM_INTERRUPT_CPU_SET_INFORMATION
2967struct _SYSTEM_CPU_SET_TAG_INFORMATION
3011enum _SYSDBG_COMMAND
3052struct _SYSDBG_VIRTUAL
3058struct _SYSDBG_PHYSICAL
3064struct _SYSDBG_CONTROL_SPACE
3071struct _SYSDBG_IO_SPACE
3080struct _SYSDBG_MSR
3084struct _SYSDBG_BUS_DATA
3101struct _SYSDBG_TRIAGE_DUMP
3119union _SYSDBG_LIVEDUMP_CONTROL_FLAGS
3159union _SYSDBG_LIVEDUMP_CONTROL_ADDPAGES
3177struct _SYSDBG_LIVEDUMP_CONTROL
3218enum _HARDERROR_RESPONSE_OPTION
3230enum _HARDERROR_RESPONSE
3251struct _HARDERROR_MSG
3613enum _SHUTDOWN_ACTION
3783enum _ATOM_INFORMATION_CLASS
3788struct _ATOM_BASIC_INFORMATION
3795struct _ATOM_TABLE_INFORMATION
3878struct _SL_KMEM_CACHE_VALUE_DESCRIPTOR
3890struct _SL_KMEM_CACHE
3903struct _SL_APPX_CACHE_VALUE_DESCRIPTOR
3911struct _SL_APPC_CACHE
3959struct _SL_HWID_DEVICE_INFO
4049struct _WNF_STATE_NAME
4069enum _WNF_STATE_NAME_LIFETIME
4122enum _WNF_DATA_SCOPE
4177struct _WNF_TYPE_ID
4253enum _WNF_STATE_NAME_INFORMATION
4294struct _WNF_DELIVERY_DESCRIPTOR

If you think that a new, open and responsible Microsoft was reined in by a bruising experience of defending anti-trust suits, then consider first that among the suit’s claims was that Internet Explorer, supposedly in open competition with other web browsers, had extraordinary access to undocumented system-level detail about Windows, for which Microsoft had monopoly power. Then take in the table above as showing very plainly that Internet Explorer was built with the extraordinary access of including the kernel’s NTEXAPI.H header with its definitions of hundreds of undocumented structures.

True, the table shows this extraordinary access only for URLMON.DLL in the original release of Windows 10. A similar table can be prepared from public evidence only starting with Windows 8. For URLMON.DLL in particular, the evidence is gone from Windows 10 in the 1803 release. But if you think this means the access has stopped, look at the symbol file for MSXML6.DLL even as recently as the 2004 release. Why, getting on to two decades after Microsoft’s supposed chastening about using undocumented system interfaces to support middleware anti-competitively, is a user-mode DLL for parsing XML files built with this undocumented access to the kernel?

It’s possible, of course, that this particular favouring of Internet Explorer with undocumented functionality was new for Windows 8, as if years after Microsoft’s settlement was done and dusted, Microsoft thought to start a new form of the same practice that had got it into supposedly so much trouble. Much more credible is that the practice never stopped and that the evidence in Windows 8 and higher is of exactly the advantage that Internet Explorer had all the while that the allegations of anti-competitive practices were litigated and the settlement was supposedly enforced.