;
; NETRNDIS.INF for the RNDIS drivers in XP and Vista
; Copyright...
;
;================================================================================

[Version]
Signature           = "$Windows NT$"
Class               = Net
ClassGUID           = {4d36e972-e325-11ce-bfc1-08002be10318}
Provider            = %Msft%
Compatible          = 1
DriverVer   		= 07/01/2001,5.1.2535.0
CatalogFile         = Intelrndis.CAT   		;TODO: to remove comment after WHQL
;Layoutfile 	    = Layout.inf

;-------------------------------------------------------------------------------

[Manufacturer]
%Msft%           = UsbRndis,NTx86,NTamd64

[UsbRndis.NTx86]
%RndisDevice%       = usb_rndis.ndi, USB\VID_8087&PID_8119

[UsbRndis.NTamd64]
%RndisDevice%       = usb_rndis.ndi, USB\VID_8087&PID_8119

[ControlFlags]
ExcludeFromSelect=*

[RNDIS_CopyFiles]
usb8023.sys,,,2
rndismp.sys,,,2

; Windows XP & Vista -----------------------------

[usb_rndis.ndi]
Characteristics = 0x84   ; NCF_PHYSICAL + NCF_HAS_UI
BusType         = 15
DriverVer   	= 07/01/2001,5.1.2535.0
AddReg          = RNDIS_AddReg_NT, RNDIS_AddReg_Common
;CopyFiles	= RNDIS_CopyFiles 		;TODO: XP and Vista both carry RNDIS driver files ?

[usb_rndis.ndi.Services]
AddService      = USB_RNDIS, 2, USB_RNDIS.Service, USB_RNDIS.EventLog

[RNDIS_AddReg_NT]
HKR, Ndi,               Service,        0, "USB_RNDIS"
HKR, Ndi\Interfaces,    UpperRange,     0, "ndis5" 
HKR, Ndi\Interfaces,    LowerRange,     0, "ethernet"

[USB_RNDIS.Service]
DisplayName     = %ServiceDisplayName%
ServiceType     = 1 
StartType       = 3 
ErrorControl    = 1 
ServiceBinary   = %12%\usb8023.sys    
LoadOrderGroup  = NDIS
AddReg          = RNDIS_WMI_AddReg

[RNDIS_WMI_AddReg]
HKR, , MofImagePath, 0x00020000, "System32\drivers\rndismp.sys"

[USB_RNDIS.EventLog]
AddReg = USB_RNDIS.EventLog.AddReg

[USB_RNDIS.EventLog.AddReg]
HKR, , EventMessageFile, 0x00020000, "%%SystemRoot%%\System32\netevent.dll"
HKR, , TypesSupported,   0x00010001, 7

; Common Sections -------------------------------------------------

[RNDIS_AddReg_Common]
HKR, NDI\params\NetworkAddress, ParamDesc,  0, %NetworkAddress%
HKR, NDI\params\NetworkAddress, type,       0, "edit"
HKR, NDI\params\NetworkAddress, LimitText,  0, "12"
HKR, NDI\params\NetworkAddress, UpperCase,  0, "1"
HKR, NDI\params\NetworkAddress, default,    0, " "
HKR, NDI\params\NetworkAddress, optional,   0, "1"

[SourceDisksNames]
1=%SourceDisk%,,1

[SourceDisksFiles]
rndscoin.dll=1
;usb8023.sys=1
;rndismp.sys=1

[DestinationDirs]
;RNDIS_CopyFiles    = 12
CoInstaller_CopyFiles = 11

;------ Coinstaller installation

[usb_rndis.ndi.CoInstallers]
AddReg=CoInstaller_AddReg
CopyFiles=CoInstaller_CopyFiles

[CoInstaller_CopyFiles]
rndscoin.dll

[CoInstaller_AddReg]
HKR,,CoInstallers32,0x00010000,"rndscoin.dll,RNDISCoInstaller"

[Strings]
ServiceDisplayName    = "USB Remote NDIS Device Driver"
NetworkAddress        = "Network Address"
Msft                  = "Microsoft"
RndisDevice           = "Intel USB Client Remote NDIS device"
SourceDisk            = "Intel USB Client Host Supporting Software Installation Media"
