;
; UsbNcmShtrihM.inf
;

[Version]
Signature="$WINDOWS NT$"
Class=Net
ClassGUID={4d36e972-e325-11ce-bfc1-08002be10318}
Provider=%Provider%
CatalogFile=UsbNcmShtrihM.cat
DriverVer=11/16/2022,6.1.7600.16385

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

[SourceDisksFiles]
UsbNcmShtrihM.sys  = 1,,

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

[Manufacturer]
%Provider%=Standard,NTAMD64

[Standard.NTAMD64]
%UsbNcm.DeviceDesc%=UsbNcm_Device,USB\VID_0FB9&PID_2606&MI_00

; Uncomment to install for any NCM-compatible device:
; Prot_00 => No encapsulated commands / responses (ref NCM10 4.2)
; %UsbNcm.DeviceDesc%=UsbNcm_Device, USB\Class_02&SubClass_0d&Prot_00

[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]
UsbNcmShtrihM.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%\UsbNcmShtrihM.sys

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

[DestinationDirs]
DefaultDestDir = 12

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

[UsbNcm_wdfsect]
KmdfLibraryVersion = 1.9

[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
NetworkAddress.Title="Network Address"
Provider="SHTRIH-M JSC"
