Skip to content

Instantly share code, notes, and snippets.

@switchabl
Created December 17, 2020 21:41
Show Gist options
  • Save switchabl/a30cb9932f00fba689f0a5140e3c591b to your computer and use it in GitHub Desktop.
Save switchabl/a30cb9932f00fba689f0a5140e3c591b to your computer and use it in GitHub Desktop.
libusb-win32 inf file for Tacx T19xx head units
; Copyright (c) 2012 libusb-win32
;
; Module Name: T19xx.inf
; Description: Installation inf for Tacx T19xx device.
;
; THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
; KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
; IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
; PURPOSE.
[Strings]
DeviceName_1902 = "Tacx T1902"
DeviceName_1904 = "Tacx T1904"
DeviceName_1932 = "Tacx T1932"
DeviceName_1942 = "Tacx T1942"
DeviceName_1942n = "Tacx T1942 (no firmware)"
DeviceID_1902 = "VID_3561&PID_1902"
DeviceID_1904 = "VID_3561&PID_1904"
DeviceID_1932 = "VID_3561&PID_1932"
DeviceID_1942 = "VID_3561&PID_1942"
DeviceID_1942n = "VID_3561&PID_E6BE"
VendorName = "Tacx"
SourceName = "Tacx T19xx Install Disk"
DeviceGUID = "{82F42773-B3E9-E5C6-7145-D3BF269E9F0F}"
[Version]
Signature = "$Windows NT$"
Class = "libusb-win32 Usb Devices"
ClassGuid = {EB781AAF-9C70-4523-A5DF-642A87ECA567}
Provider = "libusb-win32"
CatalogFile = T1942.cat
DriverVer = 02/23/2013, 1.2.6.0
DriverPackageDisplayName = "Tacx T19xx"
[ClassInstall32]
Addreg = libusb_class_install_add_reg
[libusb_class_install_add_reg]
HKR,,,0,"libusb-win32 Usb Devices"
HKR,,Icon,,-20
[Manufacturer]
%VendorName% = Devices, NT, NTAMD64
;--------------------------------------------------------------------------
; libusb-win32 files
;--------------------------------------------------------------------------
[SourceDisksNames]
1 = %SourceName%
[SourceDisksFiles.x86]
libusb0.sys = 1,x86
libusb0_x86.dll = 1,x86
libusbK_x86.dll = 1,x86
[SourceDisksFiles.amd64]
libusb0.sys = 1,amd64
libusb0.dll = 1,amd64
libusbK.dll = 1,amd64
libusbK_x86.dll = 1,x86
libusb0_x86.dll = 1,x86
[DestinationDirs]
libusb_files_sys = 10,system32\drivers
libusb_files_dll = 10,system32
libusb_files_dll_wow64 = 10,syswow64
libusb_files_dll_x86 = 10,system32
[libusb_files_sys]
libusb0.sys
[libusb_files_dll]
libusb0.dll
libusbK.dll
[libusb_files_dll_x86]
libusb0.dll, libusb0_x86.dll
libusbK.dll, libusbK_x86.dll
[libusb_files_dll_wow64]
libusb0.dll, libusb0_x86.dll
libusbK.dll, libusbK_x86.dll
;--------------------------------------------------------------------------
; libusb-win32 device driver
;--------------------------------------------------------------------------
[LIBUSB_WIN32_DEV.NT]
CopyFiles = libusb_files_sys, libusb_files_dll_x86
[LIBUSB_WIN32_DEV.NTAMD64]
CopyFiles = libusb_files_sys, libusb_files_dll, libusb_files_dll_wow64
[LIBUSB_WIN32_DEV.NT.HW]
DelReg = libusb_del_reg_hw
AddReg = libusb_add_reg_hw
[LIBUSB_WIN32_DEV.NTAMD64.HW]
DelReg = libusb_del_reg_hw
AddReg = libusb_add_reg_hw
[LIBUSB_WIN32_DEV.NT.Services]
AddService = libusb0, 0x00000002, libusb_add_service
[LIBUSB_WIN32_DEV.NTAMD64.Services]
AddService = libusb0, 0x00000002, libusb_add_service
; Older versions of this .inf file installed filter drivers. They are not
; needed any more and must be removed
[libusb_del_reg_hw]
HKR,,LowerFilters
HKR,,UpperFilters
; libusb-win32 device properties
[libusb_add_reg_hw]
HKR,,SurpriseRemovalOK,0x00010001,1
; (Optional) the usb configuration value to select when this device
; is started. If this key does not exist the first config is selected.
;HKR,,InitialConfigValue,0x00010001,<your config value>
;--------------------------------------------------------------------------
; libusb-win32 service
;--------------------------------------------------------------------------
[libusb_add_service]
DisplayName = "libusb-win32 - Kernel Driver 02/23/2013 1.2.6.0"
ServiceType = 1
StartType = 3
ErrorControl = 0
ServiceBinary = %12%\libusb0.sys
;--------------------------------------------------------------------------
; libusb-win32 devices
;--------------------------------------------------------------------------
; Hardware IDs in a 'Devices' section can be installed by libusb-win32
; using usb_install_driver_np(), usb_install_driver_np_rundll(), or the
; inf-wizard utility.
;
[Devices]
%DeviceName_1902% = LIBUSB_WIN32_DEV, USB\%DeviceID_1902%
%DeviceName_1904% = LIBUSB_WIN32_DEV, USB\%DeviceID_1904%
%DeviceName_1932% = LIBUSB_WIN32_DEV, USB\%DeviceID_1932%
%DeviceName_1942% = LIBUSB_WIN32_DEV, USB\%DeviceID_1942%
%DeviceName_1942n% = LIBUSB_WIN32_DEV, USB\%DeviceID_1942n%
[Devices.NT]
%DeviceName_1902% = LIBUSB_WIN32_DEV.NT, USB\%DeviceID_1902%
%DeviceName_1904% = LIBUSB_WIN32_DEV.NT, USB\%DeviceID_1904%
%DeviceName_1932% = LIBUSB_WIN32_DEV.NT, USB\%DeviceID_1932%
%DeviceName_1942% = LIBUSB_WIN32_DEV.NT, USB\%DeviceID_1942%
%DeviceName_1942n% = LIBUSB_WIN32_DEV.NT, USB\%DeviceID_1942n%
[Devices.NTAMD64]
%DeviceName_1902% = LIBUSB_WIN32_DEV.NTAMD64, USB\%DeviceID_1902%
%DeviceName_1904% = LIBUSB_WIN32_DEV.NTAMD64, USB\%DeviceID_1904%
%DeviceName_1932% = LIBUSB_WIN32_DEV.NTAMD64, USB\%DeviceID_1932%
%DeviceName_1942% = LIBUSB_WIN32_DEV.NTAMD64, USB\%DeviceID_1942%
%DeviceName_1942n% = LIBUSB_WIN32_DEV.NTAMD64, USB\%DeviceID_1942n%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment