XP Driver on Visual Studio 2015

Hi Guys, I have VS 2015 and WDK 10 installed and integrated for the driver building. I want to build XP driver from the same code base which is curry tied with WDK 10. Any pointers in this direction will be greatly appreciated. I was thinking of choices and obvious choice comes that install WDK 7.1.0 but I would like to use the same driver code base for both WDK 10 and WDK7.1 Do I need to create two copies of the driver code and one for XP and another one for XP+ OS versions. Thanks in advance. Thanks

Well, you can use the same source code, you just need both a vcxproj and a sources/makefile combo. But if you’re building for XP, why worry about the new WDK at all?

I would build driver with visual studio targeting windows 7 and try it on xp.
If driver works ok - great, you are done. It will work on everything xp+.

However don’t set target to windows 10, that won’t work for sure.

I would build driver with visual studio targeting windows 7 and try it on xp

That’s what I have done, multiple times, in the past successfully. Use the latest WDK and VS.

Just be careful not to call any functions that aren’t defined on XP and you should be all set.

Peter