How to install a NDIS-filter?

I’m trying to write an installer application that is supposed to add a NDIS filter to a network
interface (NIC).

I have the .inf, .dll and .sys file, so I can manually install the filter on WinXP by opening networking properties, choosing a LAN-connection, opening it’s properties and then hit “add” to install a new service to that LAN-Connection.

According to http://www.ntdev.org/archive/ntdev0008/msg0006.htmlinstall the service using SetupInstallFromInfSection(). This function requires a handle to the Reg-Key I’d want the filter to be installed under. For this there seems to be a function called SetupDiOpenClassRegKey() to which I give the GUID object.

When I install the filter this way, it?s being installed under the networking class but not under any network-connection (LAN-connection).

So I thought the problem lies probably in the function SetupDiOpenClassRegKey() which does not seem to be the right one for me.

Can anyone give me a hint on how to achieve that the filter will be installed as a service to a NIC ?

Thanks a lot in advance!

A.


Diese eMail wurde mit Amacando Free Mail versendet.

http://www.Amacando.de