;
; Usb4DeviceRouter.inf
;

[Version]
Signature="$WINDOWS NT$"
Class=USB ; TODO: edit Class
ClassGuid={36FC9E60-C465-11CF-8056-444553540000} ; TODO: edit ClassGuid
Provider=%ManufacturerName%
CatalogFile=Usb4DeviceRouter.cat
DriverVer = 05/07/2021,10.0.20348.1
PnpLockdown=1

[DestinationDirs]
DefaultDestDir = 12
Usb4DeviceRouter_Device_CoInstaller_CopyFiles = 11

[SourceDisksNames]
3426=windows cd

[SourceDisksFiles]
Usb4DeviceRouter.sys  = 3426

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

[Manufacturer]
%ManufacturerName%=Standard,NTamd64

[Standard.NTamd64]
%Usb4DeviceRouter.DeviceDesc%=Usb4DeviceRouter_Device, USB4CM\ROOT_DEVICE_ROUTER ; TODO: edit hw-id
%Usb4DeviceRouter.DeviceDesc%=Usb4DeviceRouter_Device, USB4\DEVICE_ROUTER

[Usb4DeviceRouter_Device.NT]
CopyFiles=Drivers_Dir

[Drivers_Dir]
Usb4DeviceRouter.sys

;-------------- Service installation
[Usb4DeviceRouter_Device.NT.Services]
AddService = Usb4DeviceRouter,%SPSVCINST_ASSOCSERVICE%, Usb4DeviceRouter_Service_Inst

; -------------- Usb4DeviceRouter driver install sections
[Usb4DeviceRouter_Service_Inst]
DisplayName    = %Usb4DeviceRouter.SVCDESC%
ServiceType    = 1               ; SERVICE_KERNEL_DRIVER
StartType      = 3               ; SERVICE_DEMAND_START
ErrorControl   = 1               ; SERVICE_ERROR_NORMAL
ServiceBinary  = %12%\Usb4DeviceRouter.sys
LoadOrderGroup = Base
AddReg         = Usb4DeviceRouter_Device_AddReg

[Usb4DeviceRouter_Device_AddReg]

; Create a dummy device router services key because UxD relies on it.
;
HKLM, SYSTEM\CurrentControlSet\Services\Usb4DeviceRouter,,0x00000010

[Usb4DeviceRouter_Device.NT.Wdf]
KmdfService =  Usb4DeviceRouter, Usb4DeviceRouter_wdfsect
[Usb4DeviceRouter_wdfsect]
KmdfLibraryVersion = 1.15

[Strings]
SPSVCINST_ASSOCSERVICE= 0x00000002
;Non-Localizable
ManufacturerName="Microsoft"

;Localizable
DiskName = "Usb4DeviceRouter Installation Disk"
Usb4DeviceRouter.DeviceDesc = "USB4(TM) Device Router (Microsoft)"
Usb4DeviceRouter.SVCDESC = "Usb4DeviceRouter Service"
