none
POOL_NX_OPTIN implementation capability RRS feed

  • Question

  • Hi All

    We have a driver that we build win7 build. Now in windows 10/server 2016, windows provided new flags for allocating memory with non-executable tag. To qualify dirver, our driver fails this NX-pool allcation test. So to make older driver to use this new feature Microsoft provided a way thorough which we can take advantage of new security feature in windows 10 as well as make it compatible with older Versions of windows. Following in the link how MS recommends:

    https://msdn.microsoft.com/en-us/library/windows/hardware/hh920402(v=vs.85).aspx

    I have put the same code in my driver and tried to build driver with win7 build but getting following errors:

    1. error C4013: 'ExInitializeDriverRuntime' undefined; assuming extern returning it.

    2.  error C2065: 'DrvRtPoolNxOptIn' : undeclared identifier

    So what I need to do resolve that or is it like that they are build specific and we can not do this with win7 build and we have to migrate  to win10 (with Visual Studio).

    Thanks a lot in adavance.

    Regards


    Rahul Pathak


    Rahul Pathak

    Monday, September 5, 2016 5:10 AM

Answers

  • If by the win7 build, you mean the Windows 7 WDK that kit does not support the call.   You will need to upgrade to the current WDK to support this model.


    Don Burn Windows Driver Consulting Website: http://www.windrvr.com

    Monday, September 5, 2016 11:44 AM