Re: NDIS WDM driver installation for multi-port NIC



--------------------------------------------------------------------------------
Bus driver inf (separate install # 1):

[Version]
Signature="$WINDOWS NT$"
;Class=System
;ClassGuid={4D36E97D-E325-11CE-BFC1-08002BE10318}
Class = Net
ClassGUID = {4d36e972-e325-11ce-bfc1-08002be10318}
Provider=%Foo%
DriverVer=09/28/2006,1.00.00.0000
CatalogFile=C5eBus.cat

[DestinationDirs]
Drivers_Dir = 12

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

[SourceDisksFiles]
C5eBus.sys = 1,,

;*****************************************
; Install Section
;*****************************************

[Manufacturer]
%StdMfg%=Standard

[Standard]
%C5eBus.DeviceDesc%=C5eBus_Device, PCI\VEN_150E&DEV_0002

[C5eBus_Device.NT]
Characteristics = 0x84
BusType = 5
CopyFiles=Drivers_Dir

[C5eBus_Device.NT.HW]
AddReg = C5eBus.reg

[Drivers_Dir]
C5eBus.sys

;-------------- Service installation
[C5eBus_Device.NT.Services]
AddService = C5eBus,%SPSVCINST_ASSOCSERVICE%, C5eBus_Service_Inst

; -------------- driver install sections
; How the driver behaves as a service
[C5eBus_Service_Inst]
DisplayName = %C5eBus.SVCDESC%
ServiceType = 1 ; SERVICE_KERNEL_DRIVER
StartType = 3 ; SERVICE_DEMAND_START not Automatic
ErrorControl = 1 ; SERVICE_ERROR_NORMAL
ServiceBinary = %12%\C5eBus.sys
LoadOrderGroup = Extended Base

[C5eBus.reg]
HKR,,"C5AnnounceInterfacesAtStartup",0x00010001,0
HKR, , UpperFilters, 0x00010000, "NdisEdge"
HKR,,"IsUpperEdgeNdis",0x00010003,1

[Strings]
SPSVCINST_ASSOCSERVICE= 0x00000002
Foo = "Foo"
StdMfg = "(Standard system devices)"
ImageFile = "Image File"
DiskId1 = "C5 Bus Installation Disk #1"
C5eBus.DeviceDesc = "C5e Bus Enumerator"
C5eBus.SVCDESC = "C5e Bus Enumerator"

--------------------------------------------------------------------------------
Miniport driver inf (separate install # 2):

[Version]
Signature="$WINDOWS NT$"
Class = Net
ClassGUID = {4d36e972-e325-11ce-bfc1-08002be10318}
Provider=%Foo%
DriverVer=09/28/2006,1.00.00.0000
CatalogFile=c5net.cat

[ControlFlags]
ExcludeFromSelect=*

[DestinationDirs]
Drivers_Dir = 12

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

[SourceDisksFiles]
NdisEdge.sys = 1,,

;*****************************************
; Install Section
;*****************************************
[Manufacturer]
%StdMfg%=Standard

[Standard]
%C5Net.DeviceDesc%=C5Net_Device,
{4d36e972-e325-11ce-bfc1-08002be10318}\C5Net

[C5Net_Device.NT]
;Characteristics = 0x84
Characteristics = 0x81
BusType = 1
CopyFiles=Drivers_Dir
AddReg = NETDRV.Reg

[Drivers_Dir]
NdisEdge.sys,,,2

;-------------- Service installation
[C5Net_Device.NT.Services]
AddService = NdisEdge, , NdisEdge.Service

; -------------- driver install sections
; How the driver behaves as a service
[NdisEdge.Service]
DisplayName = %NdisEdge.Service.DispName%
ServiceType = 1 ;%SERVICE_KERNEL_DRIVER%
StartType = 3 ;%SERVICE_DEMAND_START%
ErrorControl = 1 ;%SERVICE_ERROR_NORMAL%
ServiceBinary = %12%\NdisEdge.sys
LoadOrderGroup = NDIS
AddReg = TextModeFlags.Reg

[TextModeFlags.Reg]
HKR, , TextModeFlags, 0x00010001, 0x0001

[NETDRV.Reg]
HKR, , BusNumber, 0, "0"
HKR, Ndi, Service, 0, "NdisEdge"
HKR, Ndi\Interfaces, UpperRange, 0, "ndis5"
HKR, Ndi\Interfaces, LowerRange, 0, "ethernet"

[Strings]
SPSVCINST_ASSOCSERVICE= 0x00000002
Foo = "Foo"
StdMfg = "Foo"
ImageFile = "Image File"
DiskId1 = "Foo C5 Net Installation Disk #1"
C5Net.DeviceDesc = "C5 SuperNet"
C5Net.SVCDESC = "C5Net Service Image"
NdisEdge.Service.DispName = "Minimax Service"

--------------------------------------------------------------------------------
Original inf (combined install):

[Version]
Signature="$WINDOWS NT$"
Class = Net
ClassGUID = {4d36e972-e325-11ce-bfc1-08002be10318}
Provider=%Foo%
DriverVer=09/28/2006,1.00.00.0000
CatalogFile=C5net.cat

[DestinationDirs]
Drivers_Dir = 12

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

[SourceDisksFiles]
C5eBus.sys = 1,,
NdisEdge.sys = 1,,

;*****************************************
; Install Section
;*****************************************

[Manufacturer]
%StdMfg%=Standard

[Standard]
%C5eBus.DeviceDesc%=C5eBus_Device, PCI\VEN_150E&DEV_0002


[C5eBus_Device.NT]
Characteristics = 0x84
BusType = 5
CopyFiles=Drivers_Dir
AddReg = NETDRV.Reg

[C5eBus_Device.NT.HW]
AddReg = C5eBus.reg

[Drivers_Dir]
C5eBus.sys,,,2
NdisEdge.sys,,,2

;-------------- Service installation
[C5eBus_Device.NT.Services]
AddService = C5eBus,%SPSVCINST_ASSOCSERVICE%, C5eBus_Service_Inst
AddService = NdisEdge, , NdisEdge.Service

; -------------- driver install sections


; How the driver behaves as a service
[C5eBus_Service_Inst]
DisplayName = %C5eBus.SVCDESC%
ServiceType = 1 ; SERVICE_KERNEL_DRIVER
StartType = 3 ; SERVICE_DEMAND_START not Automatic
ErrorControl = 1 ; SERVICE_ERROR_NORMAL
ServiceBinary = %12%\C5eBus.sys
LoadOrderGroup = NDIS

[NdisEdge.Service]
DisplayName = %NdisEdge.Service.DispName%
ServiceType = 1 ;%SERVICE_KERNEL_DRIVER%
StartType = 3 ;%SERVICE_DEMAND_START%
ErrorControl = 1 ;%SERVICE_ERROR_NORMAL%
ServiceBinary = %12%\NdisEdge.sys
LoadOrderGroup = NDIS
AddReg = TextModeFlags.Reg

[TextModeFlags.Reg]
HKR, , TextModeFlags, 0x00010001, 0x0001

[C5eBus.reg]
HKR,, "C5AnnounceInterfacesAtStartup", 0x00010001, 0
HKR, , UpperFilters, 0x00010000, "NdisEdge"
HKR,,"IsUpperEdgeNdis",0x00010003,1

[NETDRV.Reg]
HKR, , BusNumber, 0, "0"
HKR, Ndi, Service, 0, "C5eBus"
HKR, Ndi\Interfaces, UpperRange, 0, "ndis5"
HKR, Ndi\Interfaces, LowerRange, 0, "ethernet"

[Strings]
SPSVCINST_ASSOCSERVICE= 0x00000002
Foo = "Foo"
StdMfg = "Foo"
ImageFile = "Image File"
DiskId1 = "C5 Bus Installation Disk #1"
C5eBus.DeviceDesc = "C5 SuperNet"
C5eBus.SVCDESC = "C5e Bus Service Image"
NdisEdge.Service.DispName = "Minimax Service"

--------------------------------------------------------------------------------

"Eliyas Yakub [MSFT]" wrote:

Please post your complete INF. If you are using two INFs then post both of
them.

-Eliyas



.



Relevant Pages

  • questions about inf file
    ... I'm new to driver developmentӣI want to install an USB device driver to ... [SourceDisksNames] ...
    (microsoft.public.development.device.drivers)
  • Cant install driver on XPe SP1
    ... Here is what I find in setupapi.log when I try to install the driver manually: ... OS Version = 5.1.2600 Service Pack 1 ... [SourceDisksNames] ...
    (microsoft.public.windowsxp.embedded)
  • Re: XP HOME BOOT FAILURE
    ... you remove the driver for the graphics card, ... >> If you run a repair install as I initially described, ... A repair install should bypass that but it will ... >>>> on, follow the screens. ...
    (microsoft.public.windowsxp.accessibility)
  • Re: XP update loses sound card
    ... I assume you tried a forced install of a soundcard? ... should try the sound card driver from Toshiba ... The WINMM WDM Audio driver is out of the list now. ... The sound is enabled and uninstalling the Microsoft WINMM WDM Audio ...
    (microsoft.public.windowsupdate)
  • OT: What do you do with your old computers?
    ... connected that to the WLAN as well, using a small USB wireless link. ... And what about backups for petesp4 and Bigblack? ... Once it was talking to the network, I decided to install the printer and the ... driver, and was marked as an unknown device. ...
    (comp.lang.cobol)