microsoft / DirectX-Graphics-Samples

This repo contains the DirectX Graphics samples that demonstrate how to build graphics intensive applications on Windows.
MIT License
5.88k stars 2k forks source link

DXGIAdapterRemovalSupportTest nt.h not found #840

Open billgan1024 opened 10 months ago

billgan1024 commented 10 months ago

In this example, the nt.h headers are not found. I tried installing the windows driver kit but there was still no nt.h header.

walbourn commented 10 months ago

That's definitely a bug. the nt.h header is internal only.

If you remove the reference, what symbols are undefined if any?

weltkante commented 9 months ago

(Just came across this issue randomly and figured I'd take a quick look)

The missing definitions are NTSTATUS, NT_SUCCESS(Status) and RtlEqualLuid. If I add sensible definitions in pch.h and comment out the includes for nt.h, ntrtl.h and nturtl.h I can compile, but I didn't test if the tool works.