cl.exe ERROR: NtQueryInformationFile with class 9 not implemented when creating Unreal C++ project

Hi there,

When creating a blank C++ project with Unreal I encounter the following build error:

cl.exe ERROR: NtQueryInformationFile with class 9 not implemented

I tried to follow the setup instructions for Visual Studio 2022 from

Setting Up Visual Studio Development Environment for C++ Projects in Unreal Engine | Unreal Engine 5.5 Documentation | Epic Developer Community

Packaging error ‘detected compiler newer than visual studio 2022’ - beginner - Development / Programming & Scripting - Epic Developer Community Forums

Additionally I checked where NtQueryInformationFile is defined and found NtosKrnl.lib which seems to be part of Windows Driver Kit (WDK). So I installed that as well in my Visual Studio Installer.

But the build failure remains. Here the full log:

Running C:/Program Files/Epic Games/UE_5.5/Engine/Build/BatchFiles/Build.bat Development Win64 -Project="C:/work/UnrealProjects/QuickStart/QuickStart.uproject" -TargetType=Editor -Progress -NoEngineChanges -NoHotReloadFromIDE
Using bundled DotNet SDK version: 8.0.300
Running UnrealBuildTool: dotnet "..\..\Engine\Binaries\DotNET\UnrealBuildTool\UnrealBuildTool.dll" Development Win64 -Project="C:/work/UnrealProjects/QuickStart/QuickStart.uproject" -TargetType=Editor -Progress -NoEngineChanges -NoHotReloadFromIDE
Log file: C:\Users\XXX\AppData\Local\UnrealBuildTool\Log.txt
Creating makefile for QuickStartEditor (no existing makefile)
@progress push 5%
Parsing headers for QuickStartEditor
  Running Internal UnrealHeaderTool C:\work\UnrealProjects\QuickStart\QuickStart.uproject C:\work\UnrealProjects\QuickStart\Intermediate\Build\Win64\QuickStartEditor\Development\QuickStartEditor.uhtmanifest -WarningsAsErrors -installed
Total of 0 written
Reflection code generated for QuickStartEditor in 1.339406 seconds
@progress pop
Building QuickStartEditor...
Using Visual Studio 2022 14.38.33145 toolchain (C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.38.33130) and Windows 10.0.22621.0 SDK (C:\Program Files (x86)\Windows Kits\10).
Determining max actions to execute in parallel (10 physical cores, 20 logical cores)
  Executing up to 10 processes, one per physical core
Using Unreal Build Accelerator local executor to run 7 action(s)
  Storage capacity 40Gb
---- Starting trace: 250507_161326 ----
UbaSessionServer - Disable remote execution (remote sessions will finish current processes)
------ Building 7 action(s) started ------
UbaSessionServer - cl.exe ERROR: NtQueryInformationFile with class 9 not implemented
[1/7] Compile [x64] SharedPCH.UnrealEd.Project.ValApi.Cpp20.cpp
cl.exe ERROR: NtQueryInformationFile with class 9 not implemented
[2/7] Resource Default.rc2
Trace file written to C:/Users/bau29101/AppData/Local/UnrealBuildTool/Log.uba with size 2.6kb
Total time in Unreal Build Accelerator local executor: 0.37 seconds
Total execution time: 16.53 seconds

I appreciate any help

Hello there @tsi6800!

Your setup look in order, indeed, as you are following the correct guidelines for VS and compiler setup. From what I could gather from the community, the error call you are receiving regarding NtQueryInformationFile, is tied to the Unreal Build Accelerator progress.

The first step for dealing with a possible UBA conflict is to ensure that you are on the latest version of UE5, and that all build tools associated are up to date, from the launcher. If the issue persists, the next step would be to test disabling UBA for this particular build: