Windows System Software -- Consulting, Training, Development -- Unique Expertise, Guaranteed Results

Home NTDEV
Before Posting...
Please check out the Community Guidelines in the Announcements and Administration Category.

More Info on Driver Writing and Debugging


The free OSR Learning Library has more than 50 articles on a wide variety of topics about writing and debugging device drivers and Minifilters. From introductory level to advanced. All the articles have been recently reviewed and updated, and are written using the clear and definitive style you've come to expect from OSR over the years.


Check out The OSR Learning Library at: https://www.osr.com/osr-learning-library/


XP Driver on Visual Studio 2015

amrat_sharmaamrat_sharma Member Posts: 22
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

Comments

  • Tim_RobertsTim_Roberts Member - All Emails Posts: 13,697

    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?

    Tim Roberts, [email protected]
    Providenza & Boekelheide, Inc.

  • Sergey_PisarevSergey_Pisarev Member - All Emails Posts: 264

    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.

  • Peter_Viscarola_(OSR)Peter_Viscarola_(OSR) Administrator Posts: 8,166

    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

    Peter Viscarola
    OSR
    @OSRDrivers

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Upcoming OSR Seminars
OSR has suspended in-person seminars due to the Covid-19 outbreak. But, don't miss your training! Attend via the internet instead!
Writing WDF Drivers 7 Dec 2020 LIVE ONLINE
Internals & Software Drivers 25 Jan 2021 LIVE ONLINE
Developing Minifilters 8 March 2021 LIVE ONLINE