locked
NDIS Filter Driver [ Question ] RRS feed

  • Question

  • LINK 

    The Above line is the way to install NDIS filter driver ? if not then how to install NDIS filter Driver ? 

    Thanks 

    Friday, February 19, 2016 4:24 AM

Answers

  • It will take some work, but yes, it can be done programmatically. You're going to have to learn about COM and the INetCfg interface. Dig around and find the SNETCFG sample in the XP DDK. The coding style is nearly impenetrable, but it does work. Here are the major steps you'll have to take. Note, this is not a detailed "how to", you'll have to work out many of the details on your own, including installing the filter on a particular adapter class, but this should get you started.

    1. CoCreateInstance INetCfg
    2. InetCfg::QueryInterface (INetCfgLock)
    3. INetCfgLock::AcquireWriteLock ()
    4. INetCfg::Initialize ()
    5. INetCfg::QueryNetCfgClass (INetCfgClass)
    6. INetCfgClass::QueryInterface (InetCfgClassSetup)
    7. INetCfgClassSetup::Install
    8. INetCfg::Apply
    9. INetCfgClasSetup::Release
    10. INetCfgClass::Release
    11. INetCfg::Uninitialize
    12. INetCfgLock::ReleaseWriteLock
    13. INetCfgLock::Release
    14. INetCfg::Release

     -Brian


    Azius Developer Training www.azius.com Windows device driver, internals, security, & forensics training and consulting. Blog at www.azius.com/blog

    • Marked as answer by Thomas Hopes Saturday, February 20, 2016 9:18 PM
    Saturday, February 20, 2016 6:49 PM
  • Control Panel\Network and Internet\Network and Sharing Center, click Change adapter settings, right-click on an adapter of the type specified in your INF file (e.g. Ethernet), select Properties, click Install, and then select Service. You can find more details here

     -Brian


    Azius Developer Training www.azius.com Windows device driver, internals, security, & forensics training and consulting. Blog at www.azius.com/blog

    • Marked as answer by Brian Catlin Friday, February 19, 2016 7:06 PM
    • Unmarked as answer by Thomas Hopes Saturday, February 20, 2016 3:14 AM
    • Marked as answer by Doron Holan [MSFT] Saturday, February 20, 2016 6:23 AM
    Friday, February 19, 2016 7:06 PM

All replies

  • Control Panel\Network and Internet\Network and Sharing Center, click Change adapter settings, right-click on an adapter of the type specified in your INF file (e.g. Ethernet), select Properties, click Install, and then select Service. You can find more details here

     -Brian


    Azius Developer Training www.azius.com Windows device driver, internals, security, & forensics training and consulting. Blog at www.azius.com/blog

    • Marked as answer by Brian Catlin Friday, February 19, 2016 7:06 PM
    • Unmarked as answer by Thomas Hopes Saturday, February 20, 2016 3:14 AM
    • Marked as answer by Doron Holan [MSFT] Saturday, February 20, 2016 6:23 AM
    Friday, February 19, 2016 7:06 PM
  • Control Panel\Network and Internet\Network and Sharing Center, click Change adapter settings, right-click on an adapter of the type specified in your INF file (e.g. Ethernet), select Properties, click Install, and then select Service. You can find more details here

     -Brian


    Azius Developer Training www.azius.com Windows device driver, internals, security, & forensics training and consulting. Blog at www.azius.com/blog

    is there any other way ? Like Pragmatically ?  

    Thanks

    Saturday, February 20, 2016 3:14 AM
  • It will take some work, but yes, it can be done programmatically. You're going to have to learn about COM and the INetCfg interface. Dig around and find the SNETCFG sample in the XP DDK. The coding style is nearly impenetrable, but it does work. Here are the major steps you'll have to take. Note, this is not a detailed "how to", you'll have to work out many of the details on your own, including installing the filter on a particular adapter class, but this should get you started.

    1. CoCreateInstance INetCfg
    2. InetCfg::QueryInterface (INetCfgLock)
    3. INetCfgLock::AcquireWriteLock ()
    4. INetCfg::Initialize ()
    5. INetCfg::QueryNetCfgClass (INetCfgClass)
    6. INetCfgClass::QueryInterface (InetCfgClassSetup)
    7. INetCfgClassSetup::Install
    8. INetCfg::Apply
    9. INetCfgClasSetup::Release
    10. INetCfgClass::Release
    11. INetCfg::Uninitialize
    12. INetCfgLock::ReleaseWriteLock
    13. INetCfgLock::Release
    14. INetCfg::Release

     -Brian


    Azius Developer Training www.azius.com Windows device driver, internals, security, & forensics training and consulting. Blog at www.azius.com/blog

    • Marked as answer by Thomas Hopes Saturday, February 20, 2016 9:18 PM
    Saturday, February 20, 2016 6:49 PM