Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

174 lines
3.7 KiB

  1. ;
  2. ; PTOFSALE.INF -- This file contains descriptions of Point-of-Sale devices.
  3. ;
  4. ;
  5. ; This is the inf installation script for the stand-alone
  6. ; release of POSUSB.SYS,
  7. ; the serial-over-USB driver for Point-of-Sale.
  8. ;
  9. ;
  10. ;*** Created 04/99 (ervinp)
  11. ;
  12. ;
  13. [Version]
  14. Signature="$WINDOWS NT$"
  15. Class=POSClass
  16. ClassGuid={8AE5A6A3-EC0A-11d2-8141-00AA006FFED6}
  17. Provider=%MICROSOFT%
  18. DriverVer=03/27/1999,5.00.2008.1
  19. [ControlFlags]
  20. ExcludeFromSelect = *
  21. [DestinationDirs]
  22. DefaultDestDir = 12
  23. INFCopyFiles = 17
  24. NTDriverCopyFiles = 12
  25. Win9xDriverCopyFiles = 10,system32\drivers
  26. [INFCopyFiles]
  27. ;
  28. ; Don't copy this inf itself.
  29. ; Setup will automatically copy the inf into a \winnt\inf\oemX.inf file.
  30. ;
  31. ; ptofsale.inf
  32. [NTDriverCopyFiles]
  33. posusb.sys
  34. [Win9xDriverCopyFiles]
  35. posusb.sys
  36. [ClassInstall]
  37. Addreg=POSClassReg
  38. CopyFiles=INFCopyFiles
  39. [POSClassReg]
  40. HKR,,,,%POS.ClassName%
  41. HKR,,NoInstallClass,,1
  42. ;
  43. ; BUGBUG - use USB icon for now
  44. HKR,,Icon,,-20
  45. [ClassInstall32]
  46. Addreg=POSClassReg32
  47. CopyFiles=INFCopyFiles
  48. [POSClassReg32]
  49. HKR,,,,%POS.ClassName%
  50. HKR,,NoInstallClass,,1
  51. ;
  52. ; BUGBUG - use USB icon for now
  53. HKR,,Icon,,-20
  54. [Manufacturer]
  55. %GENERIC% = GENERIC_POS
  56. %EPSON% = EPSON_POS
  57. %CYBERDATA% = CYBERDATA_POS
  58. ;
  59. ; <VENDOR SECTION>
  60. ; Add a manufacturer name here (and a string definition under [strings] below)
  61. ;
  62. ; e.g.
  63. ; %ACME%=ACME_POS
  64. ;
  65. [GENERIC_POS]
  66. ;
  67. ; The POSUSB driver assigns this generic PnP ID (POS\POS_SERIAL_INTERFACE)
  68. ; for each serial interface it creates.
  69. ;
  70. %POS\POS_SERIAL_INTERFACE.DeviceDesc%=POS_Serial_Inst, POS\POS_SERIAL_INTERFACE
  71. [EPSON_POS]
  72. %USB\VID_04B8&PID_0201.DeviceDesc%=POS_Inst, USB\VID_04B8&PID_0201
  73. [CYBERDATA_POS]
  74. %USB\VID_0F69&PID_0201.DeviceDesc%=POS_Inst, USB\VID_0F69&PID_0201
  75. ;
  76. ; <VENDOR SECTION>
  77. ; Add a manufacturer section and device entry for your device here.
  78. ; Use the hardware PnP ID of your device.
  79. ; Use the POS_Inst install section.
  80. ; Follow the Epson example above.
  81. ;
  82. ; e.g.
  83. ; [ACME_POS]
  84. ; %USB\VID_xxxx&PID_yyyy.DeviceDesc%=POS_Inst, USB\VID_xxxx&PID_yyyy
  85. ;
  86. ;
  87. ; <VENDOR NOTE>
  88. ; To inform the driver that the device
  89. ; supports a special feature please
  90. ; set the flags under [POS_Win9x_AddReg]
  91. ; and [POS_NT_AddReg] sections, accordingly
  92. ;
  93. ; To notify the driver that the device has an
  94. ; Odd Endpoint set the flag to 1, like this,
  95. ;
  96. ; HKR,,OddEndpointFlag,0x00010001,1
  97. ;
  98. [POS_Inst]
  99. AddReg = POS_Win9x_AddReg
  100. Copyfiles = Win9xDriverCopyFiles
  101. [POS_Win9x_AddReg]
  102. HKR,,OddEndpointFlag,0x00010001,0
  103. HKR,,DevLoader,,*NTKERN
  104. HKR,,NTMPDriver,,"posusb.sys"
  105. [POS_Inst.NT]
  106. AddReg = POS_NT_AddReg
  107. Copyfiles = NTDriverCopyFiles
  108. [POS_NT_AddReg]
  109. HKR,,OddEndpointFlag,0x00010001,0
  110. [POS_Inst.NT.Services]
  111. ; 0x00000002 == SPSVCINST_ASSOCSERVICE
  112. AddService = PosUsb,0x00000002,POS_Service_Inst
  113. [POS_Service_Inst]
  114. DisplayName = %POS.SvcDesc%
  115. ServiceType = 1 ; SERVICE_KERNEL_DRIVER
  116. StartType = 2 ; SERVICE_AUTO_START
  117. ErrorControl = 0 ; SERVICE_ERROR_IGNORE
  118. ServiceBinary = %12%\posusb.sys
  119. LoadOrderGroup = extended base
  120. [POS_Serial_Inst]
  121. ; Do nothing for the 'raw' serial interfaces
  122. [POS_Serial_Inst.NT]
  123. ; Do nothing for the 'raw' serial interfaces
  124. [strings]
  125. GENERIC = "(Generic POS interface)"
  126. MICROSOFT = "Microsoft"
  127. EPSON = "Epson"
  128. CYBERDATA = "Cyberdata Corporation"
  129. POS.ClassName = "USB Point-of-Sale Devices"
  130. POS.SvcDesc = "USB Point-of-Sale Driver"
  131. POS\POS_SERIAL_INTERFACE.DeviceDesc = "Serial Interface for POS Device"
  132. USB\VID_04B8&PID_0201.DeviceDesc = "Epson Point-of-Sale Printer"
  133. USB\VID_0F69&PID_0201.DeviceDesc = "Cyberdata USB Cash Drawer"
  134. ;
  135. ; <VENDOR SECTION>
  136. ; Define any new strings here
  137. ;
  138. ; e.g.
  139. ; ACME=ACME
  140. ; USB\VID_xxxx&PID_yyyy.DeviceDesc = "ACME USB Scale"
  141. ;