;
; UsbNcm.inf
;

[Version]
Signature="$WINDOWS NT$"
Class=Net
ClassGUID={4d36e972-e325-11ce-bfc1-08002be10318}
Provider=%Msft%
CatalogFile=UsbNcmFn.cat
DriverVer = 04/21/2009,10.0.22621.2506
PnpLockdown=1

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

[SourceDisksFiles]
UsbNcm.sys  = 1,,

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

[Manufacturer]
%Msft%=Standard,NTamd64

[Standard.NTamd64]
%UsbNcm.DeviceDesc%=UsbNcm_Device, USB\MS_COMP_WINNCM, USB\Class_02&SubClass_0d&Prot_00
; USB\MS_COMP_WINNCM => Windows NCM Function-Side Driver
; Prot_00 => any NCM-compatible device, No encapsulated commands / responses (ref NCM10 4.2)

[UsbNcm_Device.NT]
AddReg=UsbNcm_AddReg
CopyFiles=Drivers_Dir
BusType=15           ; PNPBus
Characteristics=0x84 ; NCF_PHYSICAL
*IfType=6            ; IF_TYPE_ETHERNET_CSMACD
*MediaType=0         ; NdisMedium802_3
*PhysicalMediaType=0 ; NdisPhysicalMediumUnspecified
*IfConnectorPresent = 1  ; true
*ConnectionType     = 1  ; NET_IF_CONNECTION_DEDICATED
*DirectionType      = 0  ; NET_IF_DIRECTION_SENDRECEIVE
*AccessType         = 2  ; NET_IF_ACCESS_BROADCAST
*HardwareLoopback   = 0  ; false

[Drivers_Dir]
UsbNcm.sys

[UsbNcm_AddReg]
; By default, USBDevice class uses iProduct descriptor to name the device in
; Device Manager on Windows 8 and higher.
; Uncomment for this device to use %DeviceName% on Windows 8 and higher:
;HKR,,FriendlyName,,%UsbNcm.DeviceDesc%
HKR, Ndi,            Service,    0, "UsbNcm"
HKR, Ndi\Interfaces, UpperRange, 0, "ndis5"
HKR, Ndi\Interfaces, LowerRange, 0, "ethernet"

HKR, Ndi\params\NetworkAddress, ParamDesc, 0, %NetworkAddress.Title%
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, Optional,  0, "1"

;-------------- Service installation
[UsbNcm_Device.NT.Services]
AddService = UsbNcm,%SPSVCINST_ASSOCSERVICE%, UsbNcm_Service_Inst

; -------------- UsbNcm driver install sections
[UsbNcm_Service_Inst]
DisplayName    = %UsbNcm.SVCDESC%
ServiceType    = 1               ; SERVICE_KERNEL_DRIVER
StartType      = 3               ; SERVICE_DEMAND_START
ErrorControl   = 1               ; SERVICE_ERROR_NORMAL
ServiceBinary  = %12%\UsbNcm.sys

;
;--- UsbNcm_Device Coinstaller installation ------
;

[DestinationDirs]
DefaultDestDir = 12

[UsbNcm_Device.NT.Wdf]
KmdfService =  UsbNcm, UsbNcm_wdfsect

[UsbNcm_wdfsect]
KmdfLibraryVersion = 1.15

[Strings]
SPSVCINST_ASSOCSERVICE= 0x00000002
ClassName="Universal Serial Bus devices"
DiskName = "UsbNcm Host Installation Disk"
UsbNcm.DeviceDesc = "UsbNcm Host Device"
UsbNcm.SVCDESC = "UsbNcm Host Service"
REG_MULTI_SZ = 0x00010000

MSFT="Microsoft"
NetworkAddress.Title="Network Address"
