stlink_VCP.inf 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. ;
  2. ; Installs the Virtual COM port interface of ST-Link based composite devices.
  3. ;
  4. [Version]
  5. Signature = "$Windows NT$"
  6. Class = Ports
  7. ClassGUID = {4D36E978-E325-11CE-BFC1-08002BE10318}
  8. Provider = %ManufacturerName%
  9. CatalogFile.NTx86 = STLinkVCP_x86.cat
  10. CatalogFile.NTAMD64 = STLinkVCP_x64.cat
  11. DriverVer=12/10/2013,1.0
  12. ; ========== Manufacturer/Models sections ===========
  13. [Manufacturer]
  14. %ManufacturerName% = Standard,NTx86,NTamd64
  15. ; List of devices supporting the Virtual COM port (with the corresponding interface ID)
  16. [Standard.NTx86]
  17. %DeviceNameVCP% =USB_InstallVCP, USB\VID_0483&PID_374A&MI_02
  18. %DeviceNameVCP% =USB_InstallVCP, USB\VID_0483&PID_374B&MI_02
  19. %DeviceNameVCP% =USB_InstallVCP, USB\VID_0483&PID_374C&MI_01
  20. [Standard.NTamd64]
  21. %DeviceNameVCP% =USB_InstallVCP, USB\VID_0483&PID_374A&MI_02
  22. %DeviceNameVCP% =USB_InstallVCP, USB\VID_0483&PID_374B&MI_02
  23. %DeviceNameVCP% =USB_InstallVCP, USB\VID_0483&PID_374C&MI_01
  24. ; ========== Class definition ===========
  25. [ClassInstall32]
  26. AddReg = ClassInstall_AddReg
  27. [ClassInstall_AddReg]
  28. HKR,,,,%ClassName%
  29. HKR,,NoInstallClass,,1
  30. HKR,,IconPath,%REG_MULTI_SZ%,"%systemroot%\system32\setupapi.dll,-20"
  31. HKR,,LowerLogoVersion,,5.2
  32. ; =================== Installation ===================
  33. [USB_InstallVCP]
  34. Include = mdmcpq.inf
  35. CopyFiles = FakeModemCopyFileSection
  36. AddReg = USB_InstallVCP.AddReg
  37. [USB_InstallVCP.AddReg]
  38. HKR,,DevLoader,,*ntkern
  39. HKR,,NTMPDriver,,usbser.sys
  40. HKR,,EnumPropPages32,,"MsPorts.dll,SerialPortPropPageProvider"
  41. [USB_InstallVCP.Services]
  42. AddService=usbser, 0x00000002, DriverService
  43. [DriverService]
  44. DisplayName=%DeviceNameVCP%
  45. ServiceType=1
  46. StartType=3
  47. ErrorControl=1
  48. ServiceBinary=%12%\usbser.sys
  49. ; [DestinationDirs]
  50. ; If your INF needs to copy files, you must not use the DefaultDestDir directive here.
  51. ; You must explicitly reference all file-list-section names in this section.
  52. ; =================== Strings ===================
  53. [Strings]
  54. ManufacturerName="STMicroelectronics"
  55. ClassName="Universal Serial Bus devices"
  56. DeviceNameVCP="STMicroelectronics STLink Virtual COM Port"
  57. REG_MULTI_SZ = 0x00010000