An NDIS protocol automatically binds to all supported adapters. So you don't need to do extra work to get NDISPROT to bind over two Ethernet NICs.
Once you've built the driver, all you need to do is:
- Install the driver (use
INetCfgClassSetup::Install
as illustrated in the bindview sample; or for casual experimentation, the NIC properties GUI has an Add... button that lets you install protocols with a GUI). - Start the driver service (use
StartService
API; or for casual experimentation,net start ndisprot
will do).
That's it. NDIS will call your protocol's ProtocolBindAdpaterEx handler for each Ethernet NIC on the system. This callback is named NdisprotBindAdapter
in the sample.
Use !ndiskd.protocol
to verify that your protocol is now bound to multiple miniports.