libusb_device.inf 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. [Strings]
  2. DeviceName = "$$DEVICE_NAME$$"
  3. DeviceGUID = "$$DEVICE_GUID$$"
  4. DeviceClassGUID = "{78a1c341-4539-11d3-b88d-00c04fad5171}"
  5. Date = "$$TODAY_DATE$$"
  6. ProviderName = "$$PROVIDER_NAME$$"
  7. WinUSB_SvcDesc = "WinUSB Driver Service"
  8. DiskName = "libusb (WinUSB) Device Install Disk"
  9. ClassName = "libusb (WinUSB) devices"
  10. ; ====================== Version ======================
  11. [Version]
  12. DriverVer = %Date%
  13. Signature = "$Windows NT$"
  14. Class = %ClassName%
  15. ClassGuid = %DeviceClassGUID%
  16. Provider = %ProviderName%
  17. CatalogFile = libusb_device.cat
  18. ; =================== Class section ===================
  19. ; Since the device is not a standard USB device, we define a new class for it.
  20. [ClassInstall32]
  21. Addreg = WinUSBDeviceClassReg
  22. [WinUSBDeviceClassReg]
  23. HKR,,,0,%ClassName%
  24. ; -20 is for the USB icon
  25. HKR,,Icon,,-20
  26. ; =========== Manufacturer/Models sections ============
  27. [Manufacturer]
  28. %ProviderName% = libusbDevice_WinUSB,NTx86,NTamd64
  29. [libusbDevice_WinUSB.NTx86]
  30. %DeviceName% = USB_Install, $$HARDWARE_ID$$
  31. [libusbDevice_WinUSB.NTamd64]
  32. %DeviceName% = USB_Install, $$HARDWARE_ID$$
  33. ; ==================== Installation ===================
  34. ; The Include and Needs directives in the USB_Install section are required for
  35. ; installing WinUSB on Windows Vista systems. Windows XP systems ignore these
  36. ; directives. These directives should not be modified.
  37. [USB_Install]
  38. Include=winusb.inf
  39. Needs=WINUSB.NT
  40. ; The Include directive in the USB_Install.Services section includes the system-
  41. ; supplied INF for WinUSB. This INF is installed by the WinUSB co-installer if
  42. ; it is not already on the target system. The AddService directive specifies
  43. ; WinUsb.sys as the device’s function driver. These directives should not be
  44. ; modified.
  45. [USB_Install.Services]
  46. Include=winusb.inf
  47. AddService=WinUSB,0x00000002,WinUSB_ServiceInstall
  48. ; The WinUSB_ServiceInstall section contains the data for installing WinUsb.sys
  49. ; as a service. This section should not be modified.
  50. [WinUSB_ServiceInstall]
  51. DisplayName = %WinUSB_SvcDesc%
  52. ServiceType = 1
  53. StartType = 3
  54. ErrorControl = 1
  55. ServiceBinary = %12%\WinUSB.sys
  56. ; The KmdfService directive installs WinUsb.sys as a kernel-mode service. The
  57. ; referenced WinUSB_Install section specifies the KMDF library version.
  58. ; Usually, the version can be derived from the WdfCoInstallerxxyyy.dll with
  59. ; xx = major, yyy = minor
  60. [USB_Install.Wdf]
  61. KmdfService=WINUSB, WinUsb_Install
  62. [WinUSB_Install]
  63. KmdfLibraryVersion=1.9
  64. ; USB_Install.HW is the key section in the INF. It specifies the device
  65. ; interface globally unique identifier (GUID) for your device. The AddReg
  66. ; directive puts the interface GUID in a standard registry value. When
  67. ; WinUsb.sys is loaded as the device’s function driver, it reads the registry
  68. ; value and uses the specified GUID to represent the device interface. You
  69. ; should replace the GUID in this example with one that you create specifically
  70. ; for your device. If the protocols for the device change, you should create a
  71. ; new device interface GUID.
  72. [USB_Install.HW]
  73. AddReg=Dev_AddReg
  74. [Dev_AddReg]
  75. HKR,,DeviceInterfaceGUIDs,0x10000,%DeviceGUID%
  76. ; The USB_Install.CoInstallers section, including the referenced AddReg and
  77. ; CopyFiles sections, contains data and instructions to install the WinUSB and
  78. ; KMDF co installers and associate them with the device. Most USB devices can
  79. ; use these sections and directives without modification.
  80. [USB_Install.CoInstallers]
  81. AddReg=CoInstallers_AddReg
  82. CopyFiles=CoInstallers_CopyFiles
  83. [CoInstallers_AddReg]
  84. HKR,,CoInstallers32,0x00010000,"WdfCoInstaller01009.dll,WdfCoInstaller","WinUSBCoInstaller2.dll"
  85. [CoInstallers_CopyFiles]
  86. WinUSBCoInstaller2.dll
  87. WdfCoInstaller01009.dll
  88. [DestinationDirs]
  89. CoInstallers_CopyFiles=11
  90. ; =============== Source Media Section ================
  91. ; The x86 and x64 versions of Windows have separate co installers. This example
  92. ; stores them on the installation disk in folders that are named x86 and amd64
  93. [SourceDisksNames]
  94. 1 = %DiskName%,,,\x86
  95. 2 = %DiskName%,,,\amd64
  96. [SourceDisksFiles.x86]
  97. WinUSBCoInstaller2.dll=1
  98. WdfCoInstaller01009.dll=1
  99. [SourceDisksFiles.amd64]
  100. WinUSBCoInstaller2.dll=2
  101. WdfCoInstaller01009.dll=2