Post · 2 min read· pp. 2521–2522

NTSEAPI_X.H

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

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

and draws from it the type definitions that are shown in the table below.

The header NTSEAPI_X.H is not known in any Device Driver Kit (DDK) or Windows Driver Kit (WDK), but all the types that the kernel is known to pick up from NTSEAPI_X.H are defined in one or another of the standard headers that are included by the source code for almost all kernel-mode projects (even the HAL). The line numbers on the left are from the unseen NTSEAPI_X.H but are known from the symbol file. Those on the right are from the WDM.H and NTIFS.H that are readily available in the WDK for Windows 10.

Line NumberTypeWDM.HNTIFS.HRemarks
192struct _GENERIC_MAPPING5155
215struct _LUID_AND_ATTRIBUTES5176WDM.H loses 2
259struct _SID_IDENTIFIER_AUTHORITY115
267struct _SID123
317struct _SID_AND_ATTRIBUTES173
332struct _SID_AND_ATTRIBUTES_HASH188
942struct _ACL5200
1445struct _SECURITY_DESCRIPTOR_RELATIVE897
1455struct _SECURITY_DESCRIPTOR907
1598struct _PRIVILEGE_SET5246
1675struct _ACCESS_REASONS1042
1912enum _SECURITY_IMPERSONATION_LEVEL5303
1996enum _TOKEN_TYPE1207
2019enum _TOKEN_INFORMATION_CLASS1230
2102struct _TOKEN_PRIVILEGES1313
2169struct _TOKEN_MANDATORY_POLICY1380
2175struct _TOKEN_ACCESS_INFORMATION1386
2197struct _TOKEN_AUDIT_POLICY1408
2203struct _TOKEN_SOURCE1414
2224struct _TOKEN_CONTROL1435
2532struct _SECURITY_QUALITY_OF_SERVICE5330

It is not known whether NTSEAPI_X.H is the source of definitions in WDM.H and NTIFS.H or whether all pick them up from yet another header, but the former inference is the simpler. If it’s true, then NTSEAPI_X.H is the first known input for generating NTIFS.H.