;-------------------------------------------------------------------------------
; NETRNDIS.INF
;
; Generic RNDIS USB Adapter INF file
;
; Copyright (c) Microsoft Corporation.  All rights reserved.

[Version]
Signature   = "$Windows NT$"
Class       = Net
ClassGUID   = {4d36e972-e325-11ce-bfc1-08002be10318}
Provider    = %Msft%
DriverVer = 06/21/2006,10.0.22621.3447
PnpLockdown = 1

[SourceDisksNames]
3426=windows cd

[SourceDisksFiles]
rndismpx.sys         = 3426
usb8023x.sys         = 3426
rndismp6.sys         = 3426
usb80236.sys         = 3426

[ControlFlags]
ExcludeFromSelect=*
[Manufacturer]
%Msft% = Msft,NTamd64

[DestinationDirs]
rndis6CopyFiles=12
rndisxCopyFiles=12

;-------------------------------------------------------------------------------
; This is a template INF. IHV INFs are expected to reference this INF.
;
[Msft.NTamd64]
 ; DisplayName           Section        DeviceID
 ; -----------           -------        --------
%usb_rndis.DeviceDesc%    = usb_rndis.ndi, ms_rndisusb
%usbrndis6.DeviceDesc%    = usbrndis6.ndi, ms_rndisusb6

;-------------------------------------------------------------------------------
; USB RNDIS Adapter DDInstall and Services section
;

[usb_rndis.ndi]
Characteristics = 0x84
AddReg          = usbrndis5to6.Reg, usbrndis6.Reg, usbrndis6_AddReg_Common
CopyFiles       = rndis6CopyFiles

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

;-------------------------------------------------------------------------------
; USB RNDIS Adapter DDInstall and Services section
; for NDIS 6.x drivers
[usbrndis6.ndi]
Characteristics = 0x84
AddReg          = usbrndis5to6Revert.Reg, usbrndis6.Reg, usbrndis6_AddReg_Common
CopyFiles       = rndis6CopyFiles

[rndis6CopyFiles]
rndismp6.sys,,,0x0100
usb80236.sys,,,0x0100

[usbrndis6.ndi.Services]
AddService      = usbrndis6, 2, usbrndis6.Service, usbrndis6.EventLog

;-----------------------------------------------------------------------------
; USB RNDIS Adapter Registry section
; Use FLG_ADDREG_NOCLOBBER (0x00000002) for UpperRange and LowerRange
; This will allow primary INFs to override these entries
;
[usbrndis5to6.Reg]
HKR,    ,                         Rndis5to6Conversion, 0x00010001, 0x00000001

[usbrndis5to6Revert.Reg]
HKR,    ,                         Rndis5to6Conversion, 0x00000004

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

[usbrndis6_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"
;-----------------------------------------------------------------------------
; Driver and Service Section
;

; For RNDIS6.x drivers
[usbrndis6.Service]
DisplayName     = %usbrndis6.Service.DispName%
ServiceType     = 1 ;%SERVICE_KERNEL_DRIVER%
StartType       = 3 ;%SERVICE_DEMAND_START%
ErrorControl    = 1 ;%SERVICE_ERROR_NORMAL%
ServiceBinary   = %12%\usb80236.sys
LoadOrderGroup  = NDIS

[usbrndis6.EventLog]
AddReg = usbrndis6.AddEventLog.Reg

[usbrndis6.AddEventLog.Reg]
HKR, , EventMessageFile, 0x00020000, "%%SystemRoot%%\System32\netevent.dll"
HKR, , TypesSupported,   0x00010001, 7

;-----------------------------------------------------------------------------
; Localizable Strings
;
[Strings]
Msft                          = "Microsoft"
usb_rndis.DeviceDesc          = "USB RNDIS Adapter"
usb_rndis.Service.DispName    = "USB RNDIS Adapter"
usbrndis6.DeviceDesc          = "USB RNDIS6 Adapter"
usbrndis6.Service.DispName    = "USB RNDIS6 Adapter"
NetworkAddress                = "Network Address"
