none
How to install the ndis filter into adapters directly? RRS feed

  • Question

  • I download the NDIS 6.0 Filter Driver sample and can install it to the adapter manually, and I tried the dpinst tool that it just put the driver into driver list but didn't install it.

    As I am new to the driver and driver installation, is there any simply ways to install the driver directly? such as a command or if modify the inf file can makes it be installed  directly?

    Another question is that how can I detect by my desktop program (can be MFC or C#) if the driver is working or unchecked/disabled in the adapter?

    Thanks.


    IT Professor

    Thursday, February 21, 2013 1:08 PM

Answers

  • To get the filter driver properly into the networking stack, use INetCfg APIs. INetCfg APIs can also tell to which adapters your driver is bound to. See Bindview sample.

    BR, Antti

    • Marked as answer by ZhongJie Qiu Thursday, February 21, 2013 2:57 PM
    Thursday, February 21, 2013 2:29 PM
  • Get the DevCon sample, this is the command line equivalent of the device manager.  You can take the sections of code from the command you need to make your own program to install things.   Typically I use DifxAPI to install the driver, then use code based on DevCon to get it running.


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

    • Marked as answer by ZhongJie Qiu Thursday, February 21, 2013 2:57 PM
    Thursday, February 21, 2013 1:53 PM

All replies

  • Get the DevCon sample, this is the command line equivalent of the device manager.  You can take the sections of code from the command you need to make your own program to install things.   Typically I use DifxAPI to install the driver, then use code based on DevCon to get it running.


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

    • Marked as answer by ZhongJie Qiu Thursday, February 21, 2013 2:57 PM
    Thursday, February 21, 2013 1:53 PM
  • To get the filter driver properly into the networking stack, use INetCfg APIs. INetCfg APIs can also tell to which adapters your driver is bound to. See Bindview sample.

    BR, Antti

    • Marked as answer by ZhongJie Qiu Thursday, February 21, 2013 2:57 PM
    Thursday, February 21, 2013 2:29 PM