libusb_device_multiple_interfaces_1.inf 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  1. ; ======== libusb 1.0 (WinUSB) device driver ==========
  2. ;
  3. ; To customize this inf file for your own device
  4. ;
  5. ; 1. Change "DeviceName" with the name you want your device to appear with
  6. ; on your system.
  7. ;
  8. ; 2. Change "VendorID" and "ProductID" according to those of your device.
  9. ; If your device is plugged in, you can retrieve these values through the
  10. ; Device Manager (regardless of whether the driver is installed or not).
  11. ;
  12. ; 3. Change "DeviceGUID" to a value that is unique on your system. For more
  13. ; information and tools to help you generate your own GUIDs, see
  14. ; http://en.wikipedia.org/wiki/Universally_Unique_Identifier.
  15. ;
  16. ; 4. Change "DeviceClassGUID" to reflect your USB Device Class.
  17. ; The following Device Classes are listed for reference:
  18. ; {745a17a0-74d3-11d0-b6fe-00a0c90f57da} : HID device
  19. ; {78a1c341-4539-11d3-b88d-00c04fad5171} : Generic WinUSB device
  20. ;
  21. ; 5. (Optional) For a composite device (hardware ID with an MI_## part),
  22. ; change the empty "InterfaceID" string with the "MI_##" string of
  23. ; your device
  24. ;
  25. ; 6. (Optional) Change the "Date" string.
  26. ;
  27. ; Note 1: if you need to create a matching cat file for this inf, you can use
  28. ; the inf2cat utility from the WinDDK, with the the following command:
  29. ; inf2cat /driver:"path_to_your inf" /os:7_X86,7_X64,Vista_X86,Vista_X64
  30. ;
  31. ; Note 2: The co-installers provided in these files are version 1.9.
  32. ; Please refer to:
  33. ; http://blogs.msdn.com/iliast/archive/2008/03/10/why-do-we-need-wdf-coinstallers.aspx and
  34. ; http://blogs.msdn.com/iliast/archive/2009/08/13/wdf-logo-requirements-regarding-coinstallers.aspx
  35. ; for more information about co-installers and their versioning
  36. ; ===================== Strings =======================
  37. [Strings]
  38. ; =====================================================
  39. ; ========= START USER CONFIGURABLE SECTION ===========
  40. ; =====================================================
  41. DeviceName = "Olimex ARM-USB-TINY (Channel B)"
  42. ; Make sure "VID_" and "PID_" are always part of the strings below
  43. VendorID = "VID_15ba"
  44. ProductID = "PID_0004"
  45. InterfaceID = "MI_01"
  46. DeviceGUID = "{d35924d6-3e16-4a9e-9782-5524a4b79ba1}"
  47. DeviceClassGUID = "{78a1c341-4539-11d3-b88d-00c04fad5171}"
  48. ; Date MUST be in MM/DD/YYYY format
  49. Date = "01/08/2010"
  50. ; =====================================================
  51. ; ========== END USER CONFIGURABLE SECTION ============
  52. ; =====================================================
  53. ProviderName = "libusb 1.0"
  54. WinUSB_SvcDesc = "WinUSB Driver Service"
  55. DiskName = "libusb (WinUSB) Device Install Disk"
  56. ClassName = "libusb (WinUSB) devices"
  57. ; ====================== Version ======================
  58. [Version]
  59. DriverVer = %Date%
  60. Signature = "$Windows NT$"
  61. Class = %ClassName%
  62. ClassGuid = %DeviceClassGUID%
  63. Provider = %ProviderName%
  64. CatalogFile = libusb_device.cat
  65. ; =================== Class section ===================
  66. ; Since the device is not a standard USB device, we define a new class for it.
  67. [ClassInstall32]
  68. Addreg = WinUSBDeviceClassReg
  69. [WinUSBDeviceClassReg]
  70. HKR,,,0,%ClassName%
  71. ; -20 is for the USB icon
  72. HKR,,Icon,,-20
  73. ; =========== Manufacturer/Models sections ============
  74. [Manufacturer]
  75. %ProviderName% = libusbDevice_WinUSB,NTx86,NTamd64
  76. [libusbDevice_WinUSB.NTx86]
  77. %DeviceName% = USB_Install, USB\%VendorID%&%ProductID%&%InterfaceID%
  78. [libusbDevice_WinUSB.NTamd64]
  79. %DeviceName% = USB_Install, USB\%VendorID%&%ProductID%&%InterfaceID%
  80. ; ==================== Installation ===================
  81. ; The Include and Needs directives in the USB_Install section are required for
  82. ; installing WinUSB on Windows Vista systems. Windows XP systems ignore these
  83. ; directives. These directives should not be modified.
  84. [USB_Install]
  85. Include=winusb.inf
  86. Needs=WINUSB.NT
  87. ; The Include directive in the USB_Install.Services section includes the system-
  88. ; supplied INF for WinUSB. This INF is installed by the WinUSB co-installer if
  89. ; it is not already on the target system. The AddService directive specifies
  90. ; WinUsb.sys as the device’s function driver. These directives should not be
  91. ; modified.
  92. [USB_Install.Services]
  93. Include=winusb.inf
  94. AddService=WinUSB,0x00000002,WinUSB_ServiceInstall
  95. ; The WinUSB_ServiceInstall section contains the data for installing WinUsb.sys
  96. ; as a service. This section should not be modified.
  97. [WinUSB_ServiceInstall]
  98. DisplayName = %WinUSB_SvcDesc%
  99. ServiceType = 1
  100. StartType = 3
  101. ErrorControl = 1
  102. ServiceBinary = %12%\WinUSB.sys
  103. ; The KmdfService directive installs WinUsb.sys as a kernel-mode service. The
  104. ; referenced WinUSB_Install section specifies the KMDF library version.
  105. ; Usually, the version can be derived from the WdfCoInstallerxxyyy.dll with
  106. ; xx = major, yyy = minor
  107. [USB_Install.Wdf]
  108. KmdfService=WINUSB, WinUsb_Install
  109. [WinUSB_Install]
  110. KmdfLibraryVersion=1.9
  111. ; USB_Install.HW is the key section in the INF. It specifies the device
  112. ; interface globally unique identifier (GUID) for your device. The AddReg
  113. ; directive puts the interface GUID in a standard registry value. When
  114. ; WinUsb.sys is loaded as the device’s function driver, it reads the registry
  115. ; value and uses the specified GUID to represent the device interface. You
  116. ; should replace the GUID in this example with one that you create specifically
  117. ; for your device. If the protocols for the device change, you should create a
  118. ; new device interface GUID.
  119. [USB_Install.HW]
  120. AddReg=Dev_AddReg
  121. [Dev_AddReg]
  122. HKR,,DeviceInterfaceGUIDs,0x10000,%DeviceGUID%
  123. ; The USB_Install.CoInstallers section, including the referenced AddReg and
  124. ; CopyFiles sections, contains data and instructions to install the WinUSB and
  125. ; KMDF co installers and associate them with the device. Most USB devices can
  126. ; use these sections and directives without modification.
  127. [USB_Install.CoInstallers]
  128. AddReg=CoInstallers_AddReg
  129. CopyFiles=CoInstallers_CopyFiles
  130. [CoInstallers_AddReg]
  131. HKR,,CoInstallers32,0x00010000,"WdfCoInstaller01009.dll,WdfCoInstaller","WinUSBCoInstaller2.dll"
  132. [CoInstallers_CopyFiles]
  133. WinUSBCoInstaller2.dll
  134. WdfCoInstaller01009.dll
  135. [DestinationDirs]
  136. CoInstallers_CopyFiles=11
  137. ; =============== Source Media Section ================
  138. ; The x86 and x64 versions of Windows have separate co installers. This example
  139. ; stores them on the installation disk in folders that are named x86 and amd64
  140. [SourceDisksNames]
  141. 1 = %DiskName%,,,\x86
  142. 2 = %DiskName%,,,\amd64
  143. [SourceDisksFiles.x86]
  144. WinUSBCoInstaller2.dll=1
  145. WdfCoInstaller01009.dll=1
  146. [SourceDisksFiles.amd64]
  147. WinUSBCoInstaller2.dll=2
  148. WdfCoInstaller01009.dll=2