Discussion:
Install NDIS Driver
(too old to reply)
sngoda
2006-04-15 23:54:10 UTC
Permalink
Hi,

I am attempting the following.

Trying to install the NDIS Intermediate Filter driver
Created the INF file
Trying to install the Driver from 'Local Area Connections'

Copies the files after that I get the following error.
"Could not add the requested component. The error is 0x800700C1"

Any clues are really appreciated. The following is the INF file
[Version]
Signature = "$Windows NT$"
Class = NetService
ClassGUID = {4D36E974-E325-11CE-BFC1-08002BE10318}
Provider = %Rsnt%
DriverVer = 06/24/2000,3.20.0000.0


[Manufacturer]
%Rsnt% = RSNT,NTx86,NTamd64

[ControlFlags]

[RSNT]
%RXPVNIC_Desc% = RXPVNIC.ndi, rsnt_rxpvnic

[RSNT.NTx86]
%RXPVNIC_Desc% = RXPVNIC.ndi, rsnt_rxpvnic

[RSNT.NTamd64]
%RXPVNIC_Desc% = RXPVNIC.ndi, rsnt_rxpvnic

[RXPVNIC.ndi]
AddReg = RXPVNIC.ndi.AddReg, RXPVNIC.AddReg
Characteristics = 0x490 ; NCF_HAS_UI | NCF_FILTER | NCF_NO_SERVICE
CopyFiles = RXPVNIC.CopyFiles.Init, RXPVNIC.CopyFiles.Sys,
RXPVNIC.CopyFiles.Inf

[RXPVNIC.ndi.Services]
AddService = RXPVNIC,,RXPVNIC.AddService

[RXPVNIC.AddService]
ServiceType = 1 ;SERVICE_KERNEL_DRIVER
StartType = 3 ;SERVICE_DEMAND_START
ErrorControl = 1 ;SERVICE_ERROR_NORMAL
ServiceBinary = %12%\rxp.sys
LoadOrderGroup = PNP_TDI
AddReg = RXPVNIC.AddService.AddReg

[RXPVNIC.AddService.AddReg]
;

[SourceDisksNames]
1=%DiskDescription%,"",,

[SourceDisksFiles]
rsntobj.dll=1
rxp.sys=1
netrsntm.inf=1

[DestinationDirs]
DefaultDestDir = 12
RXPVNIC.CopyFiles.Init = 11 ; %windir%\System32
RXPVNIC.CopyFiles.Sys = 12 ; %windir%\System32\drivers
RXPVNIC.CopyFiles.Inf = 17 ; %windir%\inf

[RXPVNIC.CopyFiles.Init]
rsntobj.dll,,,2

[RXPVNIC.CopyFiles.Sys]
rxp.sys,,,2

[RXPVNIC.CopyFiles.Inf]
netrsntm.inf,,,2

[RXPVNIC.ndi.AddReg]
HKR, Ndi, HelpText, , %RXPVNIC_HELP%

HKR, Ndi, ClsID, , {3fa6a110-ff60-11d3-91e4-0050047190ed}
HKR, Ndi, ComponentDll, , rsntobj.dll

HKR, Ndi, FilterClass, , failover
HKR, Ndi, FilterDeviceInfFile, , netrsntm.inf
HKR, Ndi, FilterDeviceInfId, , rsnt_rxpvnicmp
HKR, Ndi, Service, , RXPVNIC
HKR, Ndi\Interfaces, UpperRange, , noupper
HKR, Ndi\Interfaces, LowerRange, , nolower
HKR, Ndi\Interfaces, FilterMediaTypes, , "ethernet, tokenring, fddi"

[RXPVNIC.AddReg]
; The following key is Required
; The following key is RXPVNIC specific
HKR, Parameters, Param1, 0, 4

[RXPVNIC.Ndi.Remove.Services]
DelService = RXPVNIC

; ----------------------------------------------------------------------
[Strings]
Rsnt = "Resonate"
DiskDescription = "Resonate RXP Driver Disk"

RXPVNIC_Desc = "Resonate RXP Driver"
RXPVNIC_HELP = "Resonate RXP Driver"
Thomas F. Divine [DDK MVP]
2006-04-16 00:01:56 UTC
Permalink
Installing a NDIS IM filter driver requires two INF files: one for the
lower-edge "service" or protocol section and one for the upper-edge miniport
section.

The DDK Passthru driver sample includes two INF files needed to install that
driver. Modify them to suit your namings.

Good luck,

Thomas F. Divine, Windows DDK MVP
htttp://www.pcausa.com
Post by sngoda
Hi,
I am attempting the following.
Trying to install the NDIS Intermediate Filter driver
Created the INF file
Trying to install the Driver from 'Local Area Connections'
Copies the files after that I get the following error.
"Could not add the requested component. The error is 0x800700C1"
Any clues are really appreciated. The following is the INF file
[Version]
Signature = "$Windows NT$"
Class = NetService
ClassGUID = {4D36E974-E325-11CE-BFC1-08002BE10318}
Provider = %Rsnt%
DriverVer = 06/24/2000,3.20.0000.0
[Manufacturer]
%Rsnt% = RSNT,NTx86,NTamd64
[ControlFlags]
[RSNT]
%RXPVNIC_Desc% = RXPVNIC.ndi, rsnt_rxpvnic
[RSNT.NTx86]
%RXPVNIC_Desc% = RXPVNIC.ndi, rsnt_rxpvnic
[RSNT.NTamd64]
%RXPVNIC_Desc% = RXPVNIC.ndi, rsnt_rxpvnic
[RXPVNIC.ndi]
AddReg = RXPVNIC.ndi.AddReg, RXPVNIC.AddReg
Characteristics = 0x490 ; NCF_HAS_UI | NCF_FILTER | NCF_NO_SERVICE
CopyFiles = RXPVNIC.CopyFiles.Init, RXPVNIC.CopyFiles.Sys,
RXPVNIC.CopyFiles.Inf
[RXPVNIC.ndi.Services]
AddService = RXPVNIC,,RXPVNIC.AddService
[RXPVNIC.AddService]
ServiceType = 1 ;SERVICE_KERNEL_DRIVER
StartType = 3 ;SERVICE_DEMAND_START
ErrorControl = 1 ;SERVICE_ERROR_NORMAL
ServiceBinary = %12%\rxp.sys
LoadOrderGroup = PNP_TDI
AddReg = RXPVNIC.AddService.AddReg
[RXPVNIC.AddService.AddReg]
;
[SourceDisksNames]
1=%DiskDescription%,"",,
[SourceDisksFiles]
rsntobj.dll=1
rxp.sys=1
netrsntm.inf=1
[DestinationDirs]
DefaultDestDir = 12
RXPVNIC.CopyFiles.Init = 11 ; %windir%\System32
RXPVNIC.CopyFiles.Sys = 12 ; %windir%\System32\drivers
RXPVNIC.CopyFiles.Inf = 17 ; %windir%\inf
[RXPVNIC.CopyFiles.Init]
rsntobj.dll,,,2
[RXPVNIC.CopyFiles.Sys]
rxp.sys,,,2
[RXPVNIC.CopyFiles.Inf]
netrsntm.inf,,,2
[RXPVNIC.ndi.AddReg]
HKR, Ndi, HelpText, , %RXPVNIC_HELP%
HKR, Ndi, ClsID, , {3fa6a110-ff60-11d3-91e4-0050047190ed}
HKR, Ndi, ComponentDll, , rsntobj.dll
HKR, Ndi, FilterClass, , failover
HKR, Ndi, FilterDeviceInfFile, , netrsntm.inf
HKR, Ndi, FilterDeviceInfId, , rsnt_rxpvnicmp
HKR, Ndi, Service, , RXPVNIC
HKR, Ndi\Interfaces, UpperRange, , noupper
HKR, Ndi\Interfaces, LowerRange, , nolower
HKR, Ndi\Interfaces, FilterMediaTypes, , "ethernet, tokenring, fddi"
[RXPVNIC.AddReg]
; The following key is Required
; The following key is RXPVNIC specific
HKR, Parameters, Param1, 0, 4
[RXPVNIC.Ndi.Remove.Services]
DelService = RXPVNIC
; ----------------------------------------------------------------------
[Strings]
Rsnt = "Resonate"
DiskDescription = "Resonate RXP Driver Disk"
RXPVNIC_Desc = "Resonate RXP Driver"
RXPVNIC_HELP = "Resonate RXP Driver"
sngoda
2006-04-18 10:58:02 UTC
Permalink
Yes. I am using passthru driver as sample and replaced all entries with my
driver related keys and values in INF files. But I am getting an error
message, in device manager, as

Windows could not load the driver. The driver file may be corrupted or
missing [code 39]

I verified that the .sys file is available in \windows\system32\drivers. How
do I verify whether .sys file is corrupted or not. My build is not reporting
any errors. I am replacing the passthru.sys file with my driver file. Any
clues?

Thanks,
Srini
Post by Thomas F. Divine [DDK MVP]
Installing a NDIS IM filter driver requires two INF files: one for the
lower-edge "service" or protocol section and one for the upper-edge miniport
section.
The DDK Passthru driver sample includes two INF files needed to install that
driver. Modify them to suit your namings.
Good luck,
Thomas F. Divine, Windows DDK MVP
htttp://www.pcausa.com
Post by sngoda
Hi,
I am attempting the following.
Trying to install the NDIS Intermediate Filter driver
Created the INF file
Trying to install the Driver from 'Local Area Connections'
Copies the files after that I get the following error.
"Could not add the requested component. The error is 0x800700C1"
Any clues are really appreciated. The following is the INF file
[Version]
Signature = "$Windows NT$"
Class = NetService
ClassGUID = {4D36E974-E325-11CE-BFC1-08002BE10318}
Provider = %Rsnt%
DriverVer = 06/24/2000,3.20.0000.0
[Manufacturer]
%Rsnt% = RSNT,NTx86,NTamd64
[ControlFlags]
[RSNT]
%RXPVNIC_Desc% = RXPVNIC.ndi, rsnt_rxpvnic
[RSNT.NTx86]
%RXPVNIC_Desc% = RXPVNIC.ndi, rsnt_rxpvnic
[RSNT.NTamd64]
%RXPVNIC_Desc% = RXPVNIC.ndi, rsnt_rxpvnic
[RXPVNIC.ndi]
AddReg = RXPVNIC.ndi.AddReg, RXPVNIC.AddReg
Characteristics = 0x490 ; NCF_HAS_UI | NCF_FILTER | NCF_NO_SERVICE
CopyFiles = RXPVNIC.CopyFiles.Init, RXPVNIC.CopyFiles.Sys,
RXPVNIC.CopyFiles.Inf
[RXPVNIC.ndi.Services]
AddService = RXPVNIC,,RXPVNIC.AddService
[RXPVNIC.AddService]
ServiceType = 1 ;SERVICE_KERNEL_DRIVER
StartType = 3 ;SERVICE_DEMAND_START
ErrorControl = 1 ;SERVICE_ERROR_NORMAL
ServiceBinary = %12%\rxp.sys
LoadOrderGroup = PNP_TDI
AddReg = RXPVNIC.AddService.AddReg
[RXPVNIC.AddService.AddReg]
;
[SourceDisksNames]
1=%DiskDescription%,"",,
[SourceDisksFiles]
rsntobj.dll=1
rxp.sys=1
netrsntm.inf=1
[DestinationDirs]
DefaultDestDir = 12
RXPVNIC.CopyFiles.Init = 11 ; %windir%\System32
RXPVNIC.CopyFiles.Sys = 12 ; %windir%\System32\drivers
RXPVNIC.CopyFiles.Inf = 17 ; %windir%\inf
[RXPVNIC.CopyFiles.Init]
rsntobj.dll,,,2
[RXPVNIC.CopyFiles.Sys]
rxp.sys,,,2
[RXPVNIC.CopyFiles.Inf]
netrsntm.inf,,,2
[RXPVNIC.ndi.AddReg]
HKR, Ndi, HelpText, , %RXPVNIC_HELP%
HKR, Ndi, ClsID, , {3fa6a110-ff60-11d3-91e4-0050047190ed}
HKR, Ndi, ComponentDll, , rsntobj.dll
HKR, Ndi, FilterClass, , failover
HKR, Ndi, FilterDeviceInfFile, , netrsntm.inf
HKR, Ndi, FilterDeviceInfId, , rsnt_rxpvnicmp
HKR, Ndi, Service, , RXPVNIC
HKR, Ndi\Interfaces, UpperRange, , noupper
HKR, Ndi\Interfaces, LowerRange, , nolower
HKR, Ndi\Interfaces, FilterMediaTypes, , "ethernet, tokenring, fddi"
[RXPVNIC.AddReg]
; The following key is Required
; The following key is RXPVNIC specific
HKR, Parameters, Param1, 0, 4
[RXPVNIC.Ndi.Remove.Services]
DelService = RXPVNIC
; ----------------------------------------------------------------------
[Strings]
Rsnt = "Resonate"
DiskDescription = "Resonate RXP Driver Disk"
RXPVNIC_Desc = "Resonate RXP Driver"
RXPVNIC_HELP = "Resonate RXP Driver"
Nazan Kurt (MSFT)
2006-04-22 00:44:53 UTC
Permalink
Code 39 may be caused by binary/header mismatch.
- Make sure the platform you build the driver matches with the platform
you are installing it on. (x86/amd64/ia64 etc).
- Make sure that you build the driver from a matching DDK. If you are
installing on Vista, make sure the build number of OS and WDK matches.
- What are the errors you see in setupapi.dev.log and setupapi.app.log
about your driver install? These can give useful info.
--
-Nazan
This posting is provided "AS IS" with no warranties, and confers no rights.
Post by sngoda
Yes. I am using passthru driver as sample and replaced all entries with my
driver related keys and values in INF files. But I am getting an error
message, in device manager, as
Windows could not load the driver. The driver file may be corrupted or
missing [code 39]
I verified that the .sys file is available in \windows\system32\drivers. How
do I verify whether .sys file is corrupted or not. My build is not reporting
any errors. I am replacing the passthru.sys file with my driver file. Any
clues?
Thanks,
Srini
Post by Thomas F. Divine [DDK MVP]
Installing a NDIS IM filter driver requires two INF files: one for the
lower-edge "service" or protocol section and one for the upper-edge miniport
section.
The DDK Passthru driver sample includes two INF files needed to install that
driver. Modify them to suit your namings.
Good luck,
Thomas F. Divine, Windows DDK MVP
htttp://www.pcausa.com
Post by sngoda
Hi,
I am attempting the following.
Trying to install the NDIS Intermediate Filter driver
Created the INF file
Trying to install the Driver from 'Local Area Connections'
Copies the files after that I get the following error.
"Could not add the requested component. The error is 0x800700C1"
Any clues are really appreciated. The following is the INF file
[Version]
Signature = "$Windows NT$"
Class = NetService
ClassGUID = {4D36E974-E325-11CE-BFC1-08002BE10318}
Provider = %Rsnt%
DriverVer = 06/24/2000,3.20.0000.0
[Manufacturer]
%Rsnt% = RSNT,NTx86,NTamd64
[ControlFlags]
[RSNT]
%RXPVNIC_Desc% = RXPVNIC.ndi, rsnt_rxpvnic
[RSNT.NTx86]
%RXPVNIC_Desc% = RXPVNIC.ndi, rsnt_rxpvnic
[RSNT.NTamd64]
%RXPVNIC_Desc% = RXPVNIC.ndi, rsnt_rxpvnic
[RXPVNIC.ndi]
AddReg = RXPVNIC.ndi.AddReg, RXPVNIC.AddReg
Characteristics = 0x490 ; NCF_HAS_UI | NCF_FILTER | NCF_NO_SERVICE
CopyFiles = RXPVNIC.CopyFiles.Init, RXPVNIC.CopyFiles.Sys,
RXPVNIC.CopyFiles.Inf
[RXPVNIC.ndi.Services]
AddService = RXPVNIC,,RXPVNIC.AddService
[RXPVNIC.AddService]
ServiceType = 1 ;SERVICE_KERNEL_DRIVER
StartType = 3 ;SERVICE_DEMAND_START
ErrorControl = 1 ;SERVICE_ERROR_NORMAL
ServiceBinary = %12%\rxp.sys
LoadOrderGroup = PNP_TDI
AddReg = RXPVNIC.AddService.AddReg
[RXPVNIC.AddService.AddReg]
;
[SourceDisksNames]
1=%DiskDescription%,"",,
[SourceDisksFiles]
rsntobj.dll=1
rxp.sys=1
netrsntm.inf=1
[DestinationDirs]
DefaultDestDir = 12
RXPVNIC.CopyFiles.Init = 11 ; %windir%\System32
RXPVNIC.CopyFiles.Sys = 12 ; %windir%\System32\drivers
RXPVNIC.CopyFiles.Inf = 17 ; %windir%\inf
[RXPVNIC.CopyFiles.Init]
rsntobj.dll,,,2
[RXPVNIC.CopyFiles.Sys]
rxp.sys,,,2
[RXPVNIC.CopyFiles.Inf]
netrsntm.inf,,,2
[RXPVNIC.ndi.AddReg]
HKR, Ndi, HelpText, , %RXPVNIC_HELP%
HKR, Ndi, ClsID, , {3fa6a110-ff60-11d3-91e4-0050047190ed}
HKR, Ndi, ComponentDll, , rsntobj.dll
HKR, Ndi, FilterClass, , failover
HKR, Ndi, FilterDeviceInfFile, , netrsntm.inf
HKR, Ndi, FilterDeviceInfId, , rsnt_rxpvnicmp
HKR, Ndi, Service, , RXPVNIC
HKR, Ndi\Interfaces, UpperRange, , noupper
HKR, Ndi\Interfaces, LowerRange, , nolower
HKR, Ndi\Interfaces, FilterMediaTypes, , "ethernet, tokenring, fddi"
[RXPVNIC.AddReg]
; The following key is Required
; The following key is RXPVNIC specific
HKR, Parameters, Param1, 0, 4
[RXPVNIC.Ndi.Remove.Services]
DelService = RXPVNIC
; ----------------------------------------------------------------------
[Strings]
Rsnt = "Resonate"
DiskDescription = "Resonate RXP Driver Disk"
RXPVNIC_Desc = "Resonate RXP Driver"
RXPVNIC_HELP = "Resonate RXP Driver"
Loading...