how to make a driver compiled under XP to work under NT

Discussion in 'Windows Vista Drivers' started by Adriana Iobb, Jul 27, 2004.

  1. Adriana Iobb

    Adriana Iobb Guest

    Hi everybody,

    I have implemented a video driver, and I have used ExAllocPool and
    ExFreePool for memory management in .sys component. I compiled this driver
    under Windows XP, with XP DDK. The problem is that I need to run it also
    under NT. Here I get crash, because ExFreePool is expanded to
    ExFreePoolWithTag and this function is not supported under NT.

    Do you have any idea how to solve this? So how to make a driver compiled
    under XP to work under NT?

    I tried to undefine POOL_TAGGING, but this doesn't helps. Also having
    different binaries for different platforms is not a solution.

    Thank you.

    Best regards,
    Adriana.
     
    Adriana Iobb, Jul 27, 2004
    #1
    1. Advertisements

  2. Seems you should compile using the NT4 DDK. That will turn your
    problem upside down, i.e. backward vs. upwards compatibilty.

    Stephan
     
    Stephan Wolf [MVP], Jul 27, 2004
    #2
    1. Advertisements

  3. The DDK build environment version used for builds must be <= target OS
    version.
    So, to run the driver on NT4, build it with NT4 DDK, and forget about lots
    of new-fashion functions.
     
    Maxim S. Shatskih, Jul 27, 2004
    #3
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.