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