Answered Build and install kernel driver using WDK 8

  • Monday, February 20, 2012 10:09 AM
     
     

    Hi,

    I'm trying to build a kernel driver using VS11 Developer Preview and WDK 8. Things go smoothly but I cannot install the driver. I get "Index was outside the bounds of the array" when i go through Driver\Device Metadata\Authoring, and "Windows has determined the driver software for your device is up to date" if i go through the Device manager manually. Can anyone point me to the right direction?

    Thanks,

    • Moved by Rob CaplanMicrosoft Employee Thursday, March 01, 2012 6:03 PM Driver development issue, not Metro style app issue (From:Tailoring your Metro style app for hardware and devices )
    •  

All Replies

  • Tuesday, February 21, 2012 4:47 AM
     
     
    Can anyone tell me how to install a kernel driver built from the WDK sample?
  • Friday, February 24, 2012 4:37 AM
    Moderator
     
     

    P.Akial,

    Are you able to build a sample driver such as c:\Program Files (x86)\Windows Kits\8.0\src\usb\osrusbfx2   ?

    Best Wishes - Eric

  • Monday, February 27, 2012 4:01 AM
     
     

    Hi Eric,

    I'm able to build driver samples, and i can install the \src\hid\vhidmini but i still cannot install the src\input\kbfiltr driver. When i try to do so, i always get "Windows has determined the driver software for your device is up to date", maybe the INF file is for Win7 or lower.

    Regarding to the "Index was outside the bounds of the array" error, I discover that this will be raised if i do not select a "Locale Default" when i try to authorize the driver.

    Thanks,

  • Wednesday, February 29, 2012 7:12 AM
     
     

    Hi Eric,

    Sorry for bringing this up again, but i still have problem with the kbfiltr project.

    I build it successfully using Window Developer Preview\x64 settings, but when i install it, i always get "Windows has determined the driver software for your device is up to date". If i ignore the warning and follow this link, i can install the driver. However, when i restart, my keyboard ceases to work. The same thing happens with moufiltr project. Is the WDK8 not completed? Is there any solution to my problem?

    Thanks

  • Thursday, March 01, 2012 6:37 PM
     
     
    Windows will always default to a signed and certified package, which a driver under development typically isn't. Go into Device manager, select update for the target driver and then take the manual path, do NOT let the system do the searching. Tell it you have an install disk and then navigate to the folder with your inf file.

    Gary G. Little NanoTelesis Systems, LLC

  • Thursday, March 01, 2012 7:02 PM
    Owner
     
     
    the consumer preview was released yesterday, the samples are now online as well. I would suggest using the latest bits. 

    d -- This posting is provided "AS IS" with no warranties, and confers no rights.

  • Thursday, March 01, 2012 7:06 PM
     
     Answered

    Have you enabled test signing mode on the deployment machine?  You should pick up the Consumer Preview Beta and samples, and use the built-in capability in Visual Studio to deploy the driver to a test machine.


    This posting is provided "AS IS" with no warranties, and confers no rights.