Upgrade to VS2022 and Windows 11 22H2 WDK = BSOD on start

Hello everyone,

I migrated our driver projects to Visual Studio 2022 and Windows 11 22H2 WDK. The projects compile fine but when I deploy them on a Windows 10 with all updates installed, I get a BSOD on start. The same drivers built with Visual Studio 2019 and WDK 10.0.20175.0 works perfectly fine.

I am not linking against any libraries other than default. Any idea how to figure out where’s the issue?

Regards,
Mridul.

Did you choose “Windows 10” has your target system? Remember you have to build for the oldest system where you need to run.

Yes, I did. They all target “Windows 10 and higher”.