NDIS IM installation problem

Hello all,

I know this issue was reported in the past, but I cannot find the
solution to my problem.

We have developed an NDIS IM driver based on the 2003SRV DDK Passthrough
sample.

When we install the driver using the “Local Area Connection Properties
-> Install -> Service” it works fine.
We uninstall the driver and we attempt to install the driver using the
snetcfg.exe tool (from Xp Sp1 DDK samples), it works fine.

Now, when we try to use snetcfg.exe to install the driver on a clean
machine, it will fail. The service will be created
(HKLM\System\CurrentControlSet\Services\Bdfndisf).
The tool will print a success message, but if we check the setupapi.log
file it says:

#-019 Searching for hardware ID(s): ms_bdfndisfmp
#W059 Selecting best compatible driver failed. Error 0xe0000228: There
are no compatible drivers for this device.

What can we do to mimic the behavior of the system tool or what should
we change in our inf files?
The inf files are identical to the ones in the DDK sample.

We tested on windows XP sp1 & sp2 and on windows 2k sp4.

Thank you,
Andrei Zlate-Podani


This message was scanned for spam and viruses by BitDefender.
For more information please visit http://www.bitdefender.com/

I had the same issue with snetcfg.exe. You should use the DDK documented
API calls instead of shelling the snetcfg.exe. I don’t think that snetcfg
has been kept up to date. There’s also another example that goes thru the
API’s themselves. It’s called bindview. It’s in the
“…\src\network\config” directory. Basically, you have to call
SetupCopyOEMInf on a new install or UpdateDriverForPlugAndPlayDevices for
upgrading. Then you can use the INetCfg API to get the driver installed.

Good luck,
Paul


Paul Benware
Director of Client Development

KoolSpan Inc.
11134 Stephalee Lane
North Bethesda, MD 20852
TELE: 1-301-468-9434
DIRECT: 1-301-560-4531
FAX: 1-301-576-6341
CELL: 1-585-739-0441
www.koolspan.com

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Andrei Zlate-Podani
Sent: Wednesday, February 09, 2005 9:37 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] NDIS IM installation problem

Hello all,

I know this issue was reported in the past, but I cannot find the
solution to my problem.

We have developed an NDIS IM driver based on the 2003SRV DDK Passthrough
sample.

When we install the driver using the “Local Area Connection Properties
-> Install -> Service” it works fine.
We uninstall the driver and we attempt to install the driver using the
snetcfg.exe tool (from Xp Sp1 DDK samples), it works fine.

Now, when we try to use snetcfg.exe to install the driver on a clean
machine, it will fail. The service will be created
(HKLM\System\CurrentControlSet\Services\Bdfndisf).
The tool will print a success message, but if we check the setupapi.log
file it says:

#-019 Searching for hardware ID(s): ms_bdfndisfmp
#W059 Selecting best compatible driver failed. Error 0xe0000228: There
are no compatible drivers for this device.

What can we do to mimic the behavior of the system tool or what should
we change in our inf files?
The inf files are identical to the ones in the DDK sample.

We tested on windows XP sp1 & sp2 and on windows 2k sp4.

Thank you,
Andrei Zlate-Podani


This message was scanned for spam and viruses by BitDefender.
For more information please visit http://www.bitdefender.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@koolspan.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

I was able to get it to work by calling the snetcfg.exe install in the
miniport inf first, then calling snetcfg.exe install again with the
protocol inf.

Specify the protocol PNP Id for both the miniport and the protocol edge
install.

If anyone has a cleaner solution let me know.

Ivan Bohannon
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Andrei
Zlate-Podani
Sent: Wednesday, February 09, 2005 9:37 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] NDIS IM installation problem

Hello all,

I know this issue was reported in the past, but I cannot find the
solution to my problem.

We have developed an NDIS IM driver based on the 2003SRV DDK Passthrough

sample.

When we install the driver using the “Local Area Connection Properties
-> Install -> Service” it works fine.
We uninstall the driver and we attempt to install the driver using the
snetcfg.exe tool (from Xp Sp1 DDK samples), it works fine.

Now, when we try to use snetcfg.exe to install the driver on a clean
machine, it will fail. The service will be created
(HKLM\System\CurrentControlSet\Services\Bdfndisf).
The tool will print a success message, but if we check the setupapi.log
file it says:

#-019 Searching for hardware ID(s): ms_bdfndisfmp
#W059 Selecting best compatible driver failed. Error 0xe0000228: There
are no compatible drivers for this device.

What can we do to mimic the behavior of the system tool or what should
we change in our inf files?
The inf files are identical to the ones in the DDK sample.

We tested on windows XP sp1 & sp2 and on windows 2k sp4.

Thank you,
Andrei Zlate-Podani


This message was scanned for spam and viruses by BitDefender.
For more information please visit http://www.bitdefender.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@nsisoftware.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

Thank you all for the replies.

The workaround that Ivan described, works. I will live it like this for now.

The problem with bindview sample is that it uses the
INetCfgClassSetup::SelectAndInstall method to do the job.
This will prompt the user in a similar manner to the “Local Area
Connection Properties -> Install” dialog.

On the other hand, snetcfg uses INetCfgClassSetup::Install method. There
must be a problem with the parameters passed to it.
I assume that the SelectAndInstall will eventually call Install().

Andrei

Bohannon, Ivan wrote:

I was able to get it to work by calling the snetcfg.exe install in the
miniport inf first, then calling snetcfg.exe install again with the
protocol inf.

Specify the protocol PNP Id for both the miniport and the protocol edge
install.

If anyone has a cleaner solution let me know.

Ivan Bohannon
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Andrei
Zlate-Podani
Sent: Wednesday, February 09, 2005 9:37 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] NDIS IM installation problem

Hello all,

I know this issue was reported in the past, but I cannot find the
solution to my problem.

We have developed an NDIS IM driver based on the 2003SRV DDK Passthrough

sample.

When we install the driver using the “Local Area Connection Properties
-> Install -> Service” it works fine.
We uninstall the driver and we attempt to install the driver using the
snetcfg.exe tool (from Xp Sp1 DDK samples), it works fine.

Now, when we try to use snetcfg.exe to install the driver on a clean
machine, it will fail. The service will be created
(HKLM\System\CurrentControlSet\Services\Bdfndisf).
The tool will print a success message, but if we check the setupapi.log
file it says:

#-019 Searching for hardware ID(s): ms_bdfndisfmp
#W059 Selecting best compatible driver failed. Error 0xe0000228: There
are no compatible drivers for this device.

What can we do to mimic the behavior of the system tool or what should
we change in our inf files?
The inf files are identical to the ones in the DDK sample.

We tested on windows XP sp1 & sp2 and on windows 2k sp4.

Thank you,
Andrei Zlate-Podani


Ignorance more frequently begets confidence than does knowledge.
— Charles Darwin


This message was scanned for spam and viruses by BitDefender.
For more information please visit http://www.bitdefender.com/