Re: selectively bind a NDIS IM
- From: "Thomas F. Divine" <tdivine@NOpcausaSPAM>
- Date: Sun, 22 Apr 2007 12:05:57 -0400
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
.
- Follow-Ups:
- Re: selectively bind a NDIS IM
- From: Stephan Wolf [MVP]
- Re: selectively bind a NDIS IM
- From: Stephan Wolf [MVP]
- Re: selectively bind a NDIS IM
- References:
- selectively bind a NDIS IM
- From: Vitalie Vrabie
- selectively bind a NDIS IM
- Prev by Date: Re: NDIS IM driver signing
- Next by Date: Re: Capi 2.0 - driver for Vista
- Previous by thread: Re: selectively bind a NDIS IM
- Next by thread: Re: selectively bind a NDIS IM
- Index(es):
Relevant Pages
|
Loading