Install passthru by devcon.exe return 0xE000020B(ERROR_NO_SUCH_DEVINST)

Hi, all:

I want install ndis\passthru sample by app, so I use devcon.exe command:

devcon install netsf.inf ms_passthru

to install the passthru dirver. But it failed to execute
UpdateDriverForPlugAndPlayDevices function and return error code
0xE000020B(ERROR_NO_SUCH_DEVINST). How could I do?

Thanks for your help.

-L.

Try using the DDK BindView sample application instead of DevCon.

Good luck,

Thomas F. Divine, Windows DDK MVP
http://www.pcausa.com

“Anders Leo” wrote in message news:xxxxx@ntdev…
Hi, all:

I want install ndis\passthru sample by app, so I use devcon.exe command:

devcon install netsf.inf ms_passthru

to install the passthru dirver. But it failed to execute UpdateDriverForPlugAndPlayDevices function and return error code 0xE000020B(ERROR_NO_SUCH_DEVINST). How could I do?

Thanks for your help.

-L.

Anders,

The WIN2K DDK has a sample named SNETCFG (NETCFG). This was a command line
utility which demonstrated how to install a network component.

To quote the NETCFG.HTM file from that sample:

RUNNING THE SAMPLE

Type ?snetcfg -?? at a command-line prompt to view supported options. The
?-v? option enables verbose output along with other options.

Some of the supported options are:

-q: query for presence of a component

-i: install a component

-u: uninstall a component

To install the Passthru driver, type snetcfg -l d:\sample\netsf.inf -c s -i
ms_passthru. To uninstall, type snetcfg -u ms_passthru

As you can see, the sample author also had installing PASSTHRU from a
command line as a goal.

Good Luck,
Dave Cattley
Consulting Engineer
Systems Software Development


From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Anders Leo
Sent: Monday, April 03, 2006 7:50 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] Install passthru by devcon.exe return
0xE000020B(ERROR_NO_SUCH_DEVINST)

Hi, all:

I want install ndis\passthru sample by app, so I use devcon.exe command:

devcon install netsf.inf ms_passthru

to install the passthru dirver. But it failed to execute
UpdateDriverForPlugAndPlayDevices function and return error code
0xE000020B(ERROR_NO_SUCH_DEVINST). How could I do?

Thanks for your help.

-L.
— Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256 To unsubscribe, visit the List
Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer

There is a bug in the SNETCFG sample - and probably in the BindView sample as well. It will install NDIS IM drivers “sometimes”. To make it work reliably for NDIS IM drivers you need to add a second call to SetupCopyOEMInf to copy the miniport INF.

Here are some comments extracted from my NDIS IM installer code:

// The problem is that the snetcfg uses SetupCopyOEMInf to copy the NetService
// INF into the INF directory and it doesn’t copy the miniport INF. Because we
// thought the system would do so by following the CopyINF directive. This is
// not true.
//
// The “CopyINF” directive, by design, is only observed if the original INF is
// not yet in the INF directory. So to work around the problem, you have to
// update your installation app (snetcfg) to also copy the Net class (miniport)
// inf using SetupCopyOEMInf when it comes to installing IM drivers. Make sure
// you specify a fully qualified path of the INF in the SetupCopyOEMInf.

Good luck,

Thomas F. Diivne, Windows DDK MVP
http://www.pcausa.com
“David R. Cattley” wrote in message news:xxxxx@ntdev…
Anders,

The WIN2K DDK has a sample named SNETCFG (NETCFG). This was a command line utility which demonstrated how to install a network component.

To quote the NETCFG.HTM file from that sample:

RUNNING THE SAMPLE
Type “snetcfg -?” at a command-line prompt to view supported options. The “-v” option enables verbose output along with other options.

Some of the supported options are:

-q: query for presence of a component

-i: install a component

-u: uninstall a component

To install the Passthru driver, type snetcfg -l d:\sample\netsf.inf -c s -i ms_passthru. To uninstall, type snetcfg -u ms_passthru

As you can see, the sample author also had installing PASSTHRU from a command line as a goal.

Good Luck,
Dave Cattley
Consulting Engineer
Systems Software Development

------------------------------------------------------------------------------
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of Anders Leo
Sent: Monday, April 03, 2006 7:50 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] Install passthru by devcon.exe return 0xE000020B(ERROR_NO_SUCH_DEVINST)

Hi, all:

I want install ndis\passthru sample by app, so I use devcon.exe command:

devcon install netsf.inf ms_passthru

to install the passthru dirver. But it failed to execute UpdateDriverForPlugAndPlayDevices function and return error code 0xE000020B(ERROR_NO_SUCH_DEVINST). How could I do?

Thanks for your help.

-L.
— Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256 To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer

Thanks for Thomas and David. I have modified bindview and made it work for
me.
Thank you very much.

On 4/3/06, Thomas F. Divine wrote:
>
> There is a bug in the SNETCFG sample - and probably in the BindView
> sample as well. It will install NDIS IM drivers “sometimes”. To make it work
> reliably for NDIS IM drivers you need to add a second call to
> SetupCopyOEMInf to copy the miniport INF.
>
> Here are some comments extracted from my NDIS IM installer code:
>
> // The problem is that the snetcfg uses SetupCopyOEMInf to copy
> the NetService
> // INF into the INF directory and it doesn’t copy the miniport
> INF. Because we
> // thought the system would do so by following the CopyINF
> directive. This is
> // not true.
> //
> // The “CopyINF” directive, by design, is only observed if the
> original INF is
> // not yet in the INF directory. So to work around the problem,
> you have to
> // update your installation app (snetcfg) to also copy the Net
> class (miniport)
> // inf using SetupCopyOEMInf when it comes to installing IM
> drivers. Make sure
> // you specify a fully qualified path of the INF in the
> SetupCopyOEMInf.
> Good luck,
>
> Thomas F. Diivne, Windows DDK MVP
> http://www.pcausa.com
>
> “David R. Cattley” wrote in message news:xxxxx@ntdev…
>
> Anders,
>
> The WIN2K DDK has a sample named SNETCFG (NETCFG). This was a command
> line utility which demonstrated how to install a network component.
>
> To quote the NETCFG.HTM file from that sample:
>
> RUNNING THE SAMPLE
>
> Type “snetcfg -?” at a command-line prompt to view supported options. The
> “-v” option enables verbose output along with other options.
>
> Some of the supported options are:
>
> -q: query for presence of a component
>
> -i: install a component
>
> -u: uninstall a component
>
> To install the Passthru driver, type snetcfg -l d:\sample\netsf.inf -c s
> -i ms_passthru
. To uninstall, type snetcfg -u ms_passthru
> As you can see, the sample author also had installing PASSTHRU from a
> command line as a goal.
>
> Good Luck,
> Dave Cattley
> Consulting Engineer
> Systems Software Development
>
>
> ------------------------------
> From: xxxxx@lists.osr.com [mailto:
> xxxxx@lists.osr.com] *On Behalf Of *Anders Leo
> Sent: Monday, April 03, 2006 7:50 AM
> To: Windows System Software Devs Interest List
> Subject: [ntdev] Install passthru by devcon.exe return
> 0xE000020B(ERROR_NO_SUCH_DEVINST)
>
> Hi, all:
>
> I want install ndis\passthru sample by app, so I use devcon.execommand:
>
> devcon install netsf.inf ms_passthru
>
> to install the passthru dirver. But it failed to execute
> UpdateDriverForPlugAndPlayDevices function and return error code
> 0xE000020B(ERROR_NO_SUCH_DEVINST). How could I do?
>
> Thanks for your help.
>
> -L.
> — Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256 To unsubscribe, visit the List
> Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>