none
Starting Driver Service failed with ERROR_PROC_NOT_FOUND RRS feed

  • Question

  • Hi

    I have build a driver for windows 8 in visual studio rc 2013 in Windows 8 Debug mode. I want to have single driver that works in both windows 7 and 8. In this driver, i have used a function which is available starting from windows 8 like this,

    #if (NTDDI_VERSION >= NTDDI_WIND8)

    //windows 8 specific function call

    #endif

    When i tried to install the driver in windows 8, it works correctly. But on trying to install same .sys driver in windows 7, i get ERROR_PROC_NOT_FOUND in starting driver service. What is the issue here?

    Thanks


    Manigandasuresh

    Thursday, October 3, 2013 1:14 PM

Answers

  • No you are are going to have to build two drivers one for Win8 and the other for Win8.  Your INF and install code will have to be smart enough to use the correct one.


    Don Burn Windows Filesystem and Driver Consulting Website: http://www.windrvr.com Blog: http://msmvps.com/blogs/WinDrvr

    Thursday, October 3, 2013 1:47 PM

All replies

  • You state you are building the driver for Windows 8, that means your #if will always be true.  If you want a single binary for Windows 7 and Windows 8 it can only use Windows 7 supported calls directly.  You can conditionally see if you can find the call with MmGetSystemRoutineAddress and call it if present, but you cannot just reference an API only supported in Win8


    Don Burn Windows Filesystem and Driver Consulting Website: http://www.windrvr.com Blog: http://msmvps.com/blogs/WinDrvr


    Thursday, October 3, 2013 1:17 PM
  • I am using FwpsRedirectHandleCreate0() and FwpsRedirectHandleDestroy0() in my driver. Both these functions are available starting from windows 8 only. So, in this case is it possible to call these functions under the #if  conditions and building the driver in windows 7 mode? In windows 7, i don't need to call these functions.

    Manigandasuresh

    Thursday, October 3, 2013 1:26 PM
  • No you are are going to have to build two drivers one for Win8 and the other for Win8.  Your INF and install code will have to be smart enough to use the correct one.


    Don Burn Windows Filesystem and Driver Consulting Website: http://www.windrvr.com Blog: http://msmvps.com/blogs/WinDrvr

    Thursday, October 3, 2013 1:47 PM
  • Thanks for your help Don. That's exactly what i want to know.


    Manigandasuresh


    Thursday, October 3, 2013 1:52 PM