Re: selectively bind a NDIS IM



How do you select the adapter?

If is is a specific adapter identified by hardware ID (e.g., Vendor ID/Product ID), the you can write a NDIS "Notify Object" that is run at install time. A Notify Object can restrict bindings to a specific VID/PID.

If the binding is not based on VID/HID, then you should look at the DDK BindView application and the INetCfg API. With some (well, a LOT...) of work you should be able to achieve your goal.

Do understand that your binding may become "lost" if the user removes and adapter and reinstalls another. Or, if other NDIS components are added/removed from the system.

Good luck,

Thomas F. Divine


"Vitalie Vrabie" <vitalie.vrabie@xxxxxxxxx> wrote in message news:1177190899.148122.34550@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
hi.

i am currently developing a NDIS IM and i want to bind it to only one
specific underlying adapter.

the adapter is chosen at the user-level control program (it's okay if
this operation requires administrative rights).

problem is, at the very moment i install the IM, NDIS binds it to all
adapters. i'm currently installing it through INF files.

some people told me to try the CreateService() API function, but it
doesn't seem to work (apparently it gets created alright, but when i
try to start it, StartService() returns 0 (false = failure), and the
subsequent GetLastError() gives 0 (no error)).

the CreateService() solution seems to be a better one, because i can
first start the driver, then tell it which interface to bind to (via
IOCtl, for example), and it will register with NDIS only at this
moment, refusing all the bindings except the desired one.

from out the following two questions, EITHER one might be helpful.

Q1:
can i not register with NDIS in the driver's DriverEntry() function,
and follow the INF installation?

Q2:
how should i correctly register the IM driver with CreateService()?

thanks in advance.

--
vv


.



Relevant Pages

  • Here is netvpntp.inf file
    ... Dual .INF file for vpntp Network Adapter ... HKR, Ndi, Service, 0,"VPNTP" ... ; W9X Install Section ... ; Install NDIS ...
    (microsoft.public.development.device.drivers)
  • Re: NDIS-cable status
    ... for the adapter shows a "red X" and Network Connections shows "Network Cable ... my driver will redirect any traffic to the other adapter transparent to the ... > the NIC directly using a mechanism that bypasses the NDIS IM filter. ... >> but still the status of network connection becomes cable unpulgeed. ...
    (microsoft.public.development.device.drivers)
  • Re: How to change the IP address under the wince?
    ... you should be able to change the registry and then tell NDIS to rebind ... the adapter to be disconnected, ... > For restart you have two options. ...
    (microsoft.public.windowsce.app.development)
  • Re: wpa_supplicant with NDIS-wrapped wireless card and WPA-PSK reboots 6.1-pre
    ... I set up a D-Link AirPlus DWL-520+ wireless PCI adapter in an old ... 6 - start of a new network block ... EAPOL: SUPP_PAE entering state DISCONNECTED ... NDIS: 1 adapter descriptions found ...
    (freebsd-stable)
  • Re: put nic into promisquous mode
    ... Be aware that even if your adapter support promiscuous mode and set only if ... you have hub connected lan you'll receive all other host packets, ... >> Can anyone tell me how to configure a NIC or its NDIS ... > adapters are an example of an adapter that does not support promiscuous ...
    (microsoft.public.development.device.drivers)

Loading