Post · 2 min read· pp. 2274–2275

NTRTL_X.H

Symbol files that Microsoft has published since Windows 8 tell of both user-mode and kernel-mode code that is compiled with the NTRTL_X.H header at

d:\th.public.fre\internal\minwin\priv_sdk\inc

This NTRTL_X.H file is not in any generally released Windows Driver Kit (WDK) or Software Development Kit (SDK) or even in any old Device Driver Kit (DDK). Its existence has some public sign in plain text as a comment in IP2STRING.H, which says the latter was “Splited from ntrtl_x.h”, apparently in 2006. (The misspelling is Microsoft’s.)

User-Defined Types

Different symbol files have LF_UDT_SRC_LINE (0x1606) or even LF_UDT_MOD_SRC_LINE (0x1607) records for different selections of user-defined types (meaning classes, structures, unions and enumerations). The table below aggregates.

Many of the types that are known to be defined in NTRTL_X.H are also defined in one or another standard header from the WDK or SDK. The line numbers on the left are from the unseen NTRTL_X.H for the original release of 32-bit Windows 10, as known from symbol files. Those on the right are from the indicated headers, as readily available in the WDK or SDK for the same release.

Line NumberTypeWDM.HNTDDK.HNTIFS.HNTOSP.HWINNT.H
129union _SLIST_HEADER10527190
257union _RTL_RUN_ONCE1860
332struct _RTL_BARRIER18178
348unnamed struct for DUMMYRESERVEDSTRUCTNAME in unnamed union in _RTL_BARRIER
370union _RTL_ELEVATION_FLAGS218
1047enum _TABLE_SEARCH_RESULT1936
1058enum _RTL_GENERIC_COMPARE_RESULTS1947
1181struct _RTL_BALANCED_LINKS2070
1198struct _RTL_AVL_TABLE2087
1611struct _RTL_SPLAY_LINKS2500
1985struct _RTL_GENERIC_TABLE2874
2270struct _RTL_DYNAMIC_HASH_TABLE_ENTRY3159
2303struct _RTL_DYNAMIC_HASH_TABLE_CONTEXT3192
2309struct _RTL_DYNAMIC_HASH_TABLE_ENUMERATOR3198
2318struct _RTL_DYNAMIC_HASH_TABLE3207
2660struct _RTL_HEAP_PARAMETERS2076
3067struct _RTL_QUERY_REGISTRY_TABLE11367
3334struct _RTL_LFG_RNG_STATE
4542struct _GENERATE_NAME_CONTEXT2799
4633struct _PREFIX_TABLE_ENTRY2888
4642struct _PREFIX_TABLE2897
4703struct _UNICODE_PREFIX_TABLE_ENTRY2958
4713struct _UNICODE_PREFIX_TABLE2968
4810struct _COMPRESSED_DATA_INFO3065
5987struct _TIME_FIELDS12718
6501struct _RTL_BITMAP13054
6689struct _RTL_BITMAP_RUN13242
7561struct _MESSAGE_RESOURCE_ENTRY18398
7569struct _MESSAGE_RESOURCE_BLOCK18406
7575struct _MESSAGE_RESOURCE_DATA18412
7793struct _OSVERSIONINFOEX2A
7808struct _OSVERSIONINFOEX2W
7834struct _OSVERSIONINFOA1363318417
7843struct _OSVERSIONINFOW1364218426
7861struct _OSVERSIONINFOEXA1366018444
7874struct _OSVERSIONINFOEXW1367318457
8244struct _RTL_UMS_CONTEXT
8324struct _RTL_UMS_COMPLETION_LIST
8350enum _RTL_UMS_THREAD_INFO_CLASS18588
8361enum _RTL_UMS_SCHEDULER_REASON18599
8381struct _RTL_UMS_SCHEDULER_STARTUP_INFO
8529enum _APPCONTAINER_SID_TYPE
8831enum _OS_DEPLOYMENT_STATE_VALUES1405518715