How to install the NDIS intermediate driver

Hello All,

I was able to install the NDIS intermediate driver by
clicking the Network property->Install->Add->Service.

But I need our setup program to install this driver
automatically without the user the interaction. I was
looking into the the SetupAPI but no clue. I believe I

can call the UpdateDriverforPlugandPlayDevices with
the inf file if I am installing real NIC hardware with
the PCI ID. But for this virtual NDIS intermediate
driver, how can I deal with it?

A bunch of thanks!
William

See the BindView sample program in the DDK. It’s in the
\src\network\config\bindview directory. There’s a function called
HrInstallNetComponent (I think.) It does a SetupCopyOEMInf first to copy
your inf and drivers to the right place and then uses the INetCfg interface
to do the rest of the work. Keep in mind for an NDIS IM driver you need to
perform SetupCopyOEMInf twice (once for each of the two interface
definitions).

This worked for me.

Paul

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of William Zhang
Sent: Monday, April 05, 2004 3:08 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] How to install the NDIS intermediate driver

Hello All,

I was able to install the NDIS intermediate driver by
clicking the Network property->Install->Add->Service.

But I need our setup program to install this driver
automatically without the user the interaction. I was
looking into the the SetupAPI but no clue. I believe I

can call the UpdateDriverforPlugandPlayDevices with
the inf file if I am installing real NIC hardware with
the PCI ID. But for this virtual NDIS intermediate
driver, how can I deal with it?

A bunch of thanks!
William


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@koolspan.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

> But I need our setup program to install this driver

automatically without the user the interaction. I was
looking into the the SetupAPI but no clue. I believe I

Try INetCfg interface and friends.

Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com

Thank you Pual and Maxim. I will try it out.
William
— Paul Benware wrote:
> See the BindView sample program in the DDK. It’s in
> the
> \src\network\config\bindview directory.
> There’s a function called
> HrInstallNetComponent (I think.) It does a
> SetupCopyOEMInf first to copy
> your inf and drivers to the right place and then
> uses the INetCfg interface
> to do the rest of the work. Keep in mind for an
> NDIS IM driver you need to
> perform SetupCopyOEMInf twice (once for each of the
> two interface
> definitions).
>
> This worked for me.
>
> Paul
>
> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com] On Behalf
> Of William Zhang
> Sent: Monday, April 05, 2004 3:08 PM
> To: Windows System Software Devs Interest List
> Subject: [ntdev] How to install the NDIS
> intermediate driver
>
> Hello All,
>
> I was able to install the NDIS intermediate driver
> by
> clicking the Network
> property->Install->Add->Service.
>
> But I need our setup program to install this driver
> automatically without the user the interaction. I
> was
> looking into the the SetupAPI but no clue. I believe
> I
>
> can call the UpdateDriverforPlugandPlayDevices with
> the inf file if I am installing real NIC hardware
> with
> the PCI ID. But for this virtual NDIS intermediate
> driver, how can I deal with it?
>
> A bunch of thanks!
> William
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as:
> xxxxx@koolspan.com
> To unsubscribe send a blank email to
> xxxxx@lists.osr.com
>
>
>
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as:
> xxxxx@sbcglobal.net
> To unsubscribe send a blank email to
xxxxx@lists.osr.com

Is there any document on this INetCfg COM
interface(s)?
I tried to search the DDK and platform SDK but I did
not find anything.

The sample in bindview looks like not working on the
driver upgrade. The workaround is to uninstall and
install again. But I did find there are some
parameters
in the Install method of INetCfgSetupClass interface
that might relate to the upgrade. But I just don’t
know what shall I fill without the document.

Thanks in advance!
William
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of
Paul Benware
Sent: Monday, April 05, 2004 12:14 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] How to install the NDIS
intermediate driver

See the BindView sample program in the DDK. It’s in
the
\src\network\config\bindview directory.
There’s a function called
HrInstallNetComponent (I think.) It does a
SetupCopyOEMInf first to copy
your inf and drivers to the right place and then uses
the INetCfg interface
to do the rest of the work. Keep in mind for an NDIS
IM driver you need to
perform SetupCopyOEMInf twice (once for each of the
two interface
definitions).

This worked for me.

Paul

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf
Of William Zhang
Sent: Monday, April 05, 2004 3:08 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] How to install the NDIS intermediate
driver

Hello All,

I was able to install the NDIS intermediate driver by
clicking the Network property->Install->Add->Service.

But I need our setup program to install this driver
automatically without the user the interaction. I was
looking into the the SetupAPI but no clue. I believe I

can call the UpdateDriverforPlugandPlayDevices with
the inf file if I am installing real NIC hardware with
the PCI ID. But for this virtual NDIS intermediate
driver, how can I deal with it?

A bunch of thanks!
William


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as:
xxxxx@koolspan.com
To unsubscribe send a blank email to
xxxxx@lists.osr.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as:
xxxxx@sbcglobal.net
To unsubscribe send a blank email to xxxxx@lists.osr.com

> Is there any document on this INetCfg COM

interface(s)?

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/network/hh/network/ntfrf_61yq.asp

Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com