;
; USB_driver.inf
;

[Version]
Signature="$Windows NT$"
;Class=WPD
Class=USBDevice
;ClassGuid={eec5ad98-8080-425f-922a-dabf3de3f69a}
ClassGuid={88BAE032-5A81-49f0-BC3D-A4FF138216D6}
Provider=%ManufacturerName%
CatalogFile=AscomUsbDriver.cat
DriverVer=11/13/2025,17.22.18.281

[Manufacturer]
%ManufacturerName%=Standard,NTamd64

[Standard.NTamd64]
%WIFI_HS_BOOT%=AscomUsbDriver_Install, USB\VID_1768&PID_0000
%DESKTOP_CHARGER%=AscomUsbDriver_Install, USB\VID_1768&PID_0003
%WIFI_HS%=AscomUsbDriver_Install, USB\VID_1768&PID_0005
%RACK_CHARGER%=AscomUsbDriver_Install, USB\VID_1768&PID_0006
%WIFI_HS%=AscomUsbDriver_Install, USB\VID_1768&PID_0007
%WIFI_HS%=AscomUsbDriver_Install, USB\VID_1768&PID_0008
%WIFI_HS%=AscomUsbDriver_Install, USB\VID_1768&PID_0009
%WIFI_HS%=AscomUsbDriver_Install, USB\VID_1768&PID_000A
%WIFI_HS%=AscomUsbDriver_Install, USB\VID_1768&PID_000B
%WIFI_HS%=AscomUsbDriver_Install, USB\VID_1768&PID_000C
%WIFI_HS%=AscomUsbDriver_Install, USB\VID_1768&PID_000D
%DECT_HS_BOOT%=AscomUsbDriver_Install, USB\VID_1768&PID_000F
%DECT_HS%=AscomUsbDriver_Install, USB\VID_1768&PID_0010
%ASAB_DEVICE%=AscomUsbDriver_Install, USB\VID_1768&PID_0011

[SourceDisksFiles]
AscomUsbDriver.dll=1
WudfUpdate_01011.dll=1

[SourceDisksNames]
1 = %DiskName%

; ========== Class definition ===========

;[ClassInstall32]
;AddReg = ClassInstall_AddReg

;[ClassInstall_AddReg]
;HKR,,,,%ClassName%
;HKR,,NoInstallClass,,1
;HKR,,IconPath,%REG_MULTI_SZ%,"%%systemroot%%\system32\setupapi.dll,-20"
;HKR,,LowerLogoVersion,,5.2
; =================== UMDF Device ==================================

[AscomUsbDriver_Install.NT]
CopyFiles=UMDriverCopy
Include=WINUSB.INF                      ; Import sections from WINUSB.INF
Needs=WINUSB.NT                         ; Run the CopyFiles & AddReg directives for WinUsb.INF
[AscomUsbDriver_Install.NT.hw]
AddReg=AscomUsbDriver_AddReg

[AscomUsbDriver_Install.NT.Services]
AddService=WUDFRd,0x000001fa,WUDFRD_ServiceInstall  ; flag 0x2 sets this as the service for the device
AddService=WinUsb,0x000001f8,WinUsb_ServiceInstall  ; this service is installed because its a filter.

[AscomUsbDriver_Install.NT.CoInstallers]
CopyFiles=CoInstallers_CopyFiles
AddReg=CoInstallers_AddReg


[AscomUsbDriver_Install.NT.Wdf]
UmdfDispatcher=WinUsb
UmdfService=AscomUsbDriver,AscomUsbDriver_Install
UmdfServiceOrder=AscomUsbDriver
UmdfKernelModeClientPolicy = AllowKernelModeClients
UmdfFileObjectPolicy = AllowNullAndUnknownFileObjects
UmdfFsContextUsePolicy = CannotUseFsContexts

[AscomUsbDriver_Install]
UmdfLibraryVersion=1.11.0 
ServiceBinary=%12%\UMDF\AscomUsbDriver.dll
DriverCLSID={d3f30f3e-475a-40f0-8afb-f562f0e638eb}

[AscomUsbDriver_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,,%DeviceName%
HKR,,"LowerFilters",0x00010008,"WinUsb" ; FLG_ADDREG_TYPE_MULTI_SZ | FLG_ADDREG_APPEND
HKR,,"WinUsbPowerPolicyOwnershipDisabled",0x00010001,1


[WUDFRD_ServiceInstall]
DisplayName = %WudfRdDisplayName%
ServiceType = 1
StartType = 3
ErrorControl = 1
ServiceBinary = %12%\WUDFRd.sys

[WinUsb_ServiceInstall]
DisplayName = %WinUsb_SvcDesc%
ServiceType = 1
StartType = 3 ; todo replace? 
ErrorControl = 1
ServiceBinary = %12%\WinUSB.sys

[CoInstallers_CopyFiles]
WudfUpdate_01011.dll

[CoInstallers_AddReg]
HKR,,CoInstallers32,0x00010008,"WudfUpdate_01011.dll"

[DestinationDirs]
UMDriverCopy=12,UMDF ; copy to drivers\umdf
CoInstallers_CopyFiles=11

[UMDriverCopy]
AscomUsbDriver.dll

; =================== Generic ==================================

[Strings]
ManufacturerName="Ascom (Sweden) AB" ;TODO: Replace with your manufacturer name
ClassName="Portable Devices"
DiskName = "Ascom Installation Disk"
WudfRdDisplayName="Windows Driver Foundation - User-mode Driver Framework Reflector"
WinUsb_SvcDesc="WinUSB Driver"
DESKTOP_CHARGER="Desktop Charger Advanced"
RACK_CHARGER="Rack Charger"
WIFI_HS_BOOT="WiFi Handset Boot"
WIFI_HS="WiFi Handset"
DECT_HS="DECT Handset"
DECT_HS_BOOT="DECT Handset Boot"
ASAB_DEVICE="ASAB Device""
REG_MULTI_SZ = 0x00010000
ASCOM_REGISTRY_PATH="SOFTWARE\Ascom\Handsets"
