NtQueryInformationByName

Query → NTSTATUS

NtQueryInformationByName is a Windows NT kernel system call, in the Query category, returning NTSTATUS. Its syscall number is not the same on every Windows release: across the 30 version-and-architecture pairs recorded here it takes 14 distinct values, from 0x00BD to 0x0153.

The number is an index into the system service table of one particular build, not a stable identifier, so it is not portable between Windows versions or between x64 and x86. The table below gives the value recorded for each.

Numbers across OS versions (30)

OS VersionArchitectureNumber
Windows 10 1703 x64 0x013B (315)
Windows 10 1703 x86 0x00BD (189)
Windows 10 1709 x64 0x013E (318)
Windows 10 1709 x86 0x00BE (190)
Windows 10 1803 x86 0x00BE (190)
Windows 10 1803 x64 0x0140 (320)
Windows 10 1809 x64 0x0141 (321)
Windows 10 1809 x86 0x00BE (190)
Windows 10 1903 x64 0x0142 (322)
Windows 10 1903 x86 0x00BE (190)
Windows 10 1909 x86 0x00BE (190)
Windows 10 1909 x64 0x0142 (322)
Windows 10 2004 x64 0x0148 (328)
Windows 10 2004 x86 0x00BE (190)
Windows 10 20H2 x64 0x0148 (328)
Windows 10 20H2 x86 0x00BE (190)
Windows 10 21H1 x64 0x0148 (328)
Windows 10 21H1 x86 0x00BE (190)
Windows 10 21H2 x86 0x00BE (190)
Windows 10 21H2 x64 0x0149 (329)
Windows 10 22H2 x86 0x00BE (190)
Windows 10 22H2 x64 0x0149 (329)
Windows 11 and Server 11 21H2 x64 0x014F (335)
Windows 11 and Server 11 22H2 x64 0x0151 (337)
Windows 11 and Server 11 23H2 x64 0x0151 (337)
Windows 11 and Server 11 24H2 x64 0x0153 (339)
Windows 11 and Server 11 25H2 x64 0x0153 (339)
Windows 11 and Server Server 2022 x64 0x014E (334)
Windows 11 and Server Server 2025 x64 0x0153 (339)
Windows 11 and Server Server 23H2 x64 0x0152 (338)