Leaked source code of windows server 2003
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.

169 lines
7.0 KiB

  1. [Version]
  2. Signature="$CHICAGO$"
  3. Class=HIDClass
  4. ClassGuid={745a17a0-74d3-11d0-b6fe-00a0c90f57da}
  5. Provider=%VENDOR%
  6. LayoutFile=layout.inf
  7. [DestinationDirs]
  8. LwJoy.CopyFilesDLL = 11 ;%SystemRoot%\system32
  9. LwJoy.CopyFilesSYS = 10,system32\drivers
  10. [ControlFlags]
  11. ExcludeFromSelect = USB\VID_046D&PID_C281
  12. ExcludeFromSelect = USB\VID_046D&PID_C291
  13. [Manufacturer]
  14. %VENDOR%=Standard
  15. [Standard]
  16. ; These are the USB devices
  17. %USB\VID_046D&PID_C281.DeviceDesc% = LwJoy.WgmForce,,USB\VID_046D&PID_C281
  18. %USB\VID_046D&PID_C291.DeviceDesc% = LwJoy.RallyForce,,USB\VID_046D&PID_C291
  19. ;------------- 9x INSTALL ---------------------------------------------
  20. [LwJoy.WgmForce]
  21. CopyFiles = LwJoy.CopyFilesSYS, LwJoy.CopyFilesDLL
  22. AddReg = LwJoy.UsbPnp.AddReg, LwJoy.WgmForce.AddReg
  23. [LwJoy.RallyForce]
  24. CopyFiles = LwJoy.CopyFilesSYS, LwJoy.CopyFilesDLL
  25. AddReg = LwJoy.UsbPnp.AddReg, LwJoy.RallyForce.AddReg
  26. ;------------- NT INSTALL ---------------------------------------------
  27. [LwJoy.WgmForce.NT]
  28. ;Include= ks.inf, lvkscap.inf, ksfilter.inf
  29. ;Needs= KS.Registration,LKSCAPTUR.Registration
  30. CopyFiles = LwJoy.CopyFilesSYS, LwJoy.CopyFilesDLL
  31. AddReg = LwJoy.UsbPnp.AddReg, LwJoy.WgmForce.AddReg
  32. [LwJoy.RallyForce.NT]
  33. ;Include= ks.inf, lvkscap.inf, ksfilter.inf
  34. ;Needs= KS.Registration,LKSCAPTUR.Registration
  35. CopyFiles = LwJoy.CopyFilesSYS, LwJoy.CopyFilesDLL
  36. AddReg = LwJoy.UsbPnp.AddReg, LwJoy.RallyForce.AddReg
  37. [LwJoy.WgmForce.NT.Services]
  38. AddService = LwUsbHid,0x00000002,LwJoy.WgmForce.Service_Inst
  39. [LwJoy.RallyForce.NT.Services]
  40. AddService = LwUsbHid,0x00000002,LwJoy.RallyForce.Service_Inst
  41. [LwJoy.WgmForce.Service_Inst]
  42. DisplayName = %USB\VID_046D&PID_C281.DeviceDesc%
  43. ServiceType = 1 ; SERVICE_KERNEL_DRIVER
  44. StartType = 3 ; SERVICE_DEMAND_START
  45. ErrorControl = 1 ; SERVICE_ERROR_NORMAL
  46. ServiceBinary = %12%\LwUsbHid.sys
  47. ;LoadOrderGroup = Extended Base
  48. [LwJoy.RallyForce.Service_Inst]
  49. DisplayName = %USB\VID_046D&PID_C291.DeviceDesc%
  50. ServiceType = 1 ; SERVICE_KERNEL_DRIVER
  51. StartType = 3 ; SERVICE_DEMAND_START
  52. ErrorControl = 1 ; SERVICE_ERROR_NORMAL
  53. ServiceBinary = %12%\LwUsbHid.sys
  54. ;LoadOrderGroup = Extended Base
  55. ;-------------COPY FILE ---------------------------------------------
  56. [LwJoy.CopyFilesSYS]
  57. ; driver files to copy
  58. LwUsbHid.sys
  59. hidparse.sys
  60. hidclass.sys
  61. [LwJoy.CopyFilesDLL]
  62. ; dll files to copy
  63. hid.dll
  64. pid.dll
  65. ;-------------ADD REG ---------------------------------------------
  66. ; --- bus
  67. [LwJoy.GamePort.AddReg]
  68. ; if we need to add something for the game port
  69. ; empty for now
  70. [LwJoy.UsbPnp.AddReg]
  71. HKR,,DevLoader,,*ntkern
  72. HKR,,NTMPDriver,,"LwUsbHid.sys"
  73. HKCR,CLSID\%LwForce.CLSID%,,0,%LwForce.CLSID.Description%
  74. HKCR,CLSID\%LwForce.CLSID%\InProcServer32,,0,%11%\%LwForce.CLSID.DllName%
  75. HKCR,CLSID\%LwForce.CLSID%\InProcServer32,ThreadingModel,0,Both
  76. [LwJoy.WgmForce.AddReg]
  77. HKR,,DriverDesc,,%USB\VID_046D&PID_C281.DeviceDesc%
  78. HKLM,%WgmOem.WgmForce%,OEMName,,%USB\VID_046D&PID_C281.DeviceDesc%
  79. HKLM,%WgmOem.WgmForce%,OEMData,1,03,00,00,10,09,00,00,00
  80. ;if i put this key, the game ctrl stop call the device for position
  81. ;HKLM,%WgmOem.WgmForce%,ConfigCLSID,,%LwForce.CLSID%
  82. ;HKLM,%WgmOem.WgmForce%,OEMCallout,,%LwForce.CLSID.SysName%
  83. ;HKLM,%WgmOem.WgmForce%\OEMForceFeedback,Attributes,1,00,00,00,00,E8,03,00,00,E8,03,00,00
  84. ;HKLM,%WgmOem.WgmForce%\OEMForceFeedback,CLSID,,%LwForce.CLSID%
  85. ; for 98 with vxd
  86. ;HKLM,%WgmOem.WgmForce%\OEMForceFeedback,VJoyD,,""
  87. ; Force
  88. HKLM,%WgmOem.WgmForce%\Axes\0,,,%LwForce.XAxis.Desc%
  89. HKLM,%WgmOem.WgmForce%\Axes\0,Attributes,1,01,01,00,00,01,00,30,00
  90. HKLM,%WgmOem.WgmForce%\Axes\0,FFAttributes,1,0A,00,00,00,00,01,00,00
  91. HKLM,%WgmOem.WgmForce%\Axes\1,,,%LwForce.YAxis.Desc%
  92. HKLM,%WgmOem.WgmForce%\Axes\1,Attributes,1,01,01,00,00,01,00,31,00
  93. HKLM,%WgmOem.WgmForce%\Axes\1,FFAttributes,1,0A,00,00,00,00,01,00,00
  94. HKLM,%WgmOem.WgmForce%\Axes\2,,,%LwForce.ZAxis.Desc%
  95. HKLM,%WgmOem.WgmForce%\Axes\2,Attributes,1,01,01,00,00,01,00,32,00
  96. HKLM,%WgmOem.WgmForce%\Axes\2,FFAttributes,1,0A,00,00,00,00,01,00,00
  97. HKLM,%WgmOem.WgmForce%\Buttons\0,,,%LwForce.Button0.Desc%
  98. HKLM,%WgmOem.WgmForce%\Buttons\0,Attributes,1,02,00,00,00,09,00,01,00
  99. HKLM,%WgmOem.WgmForce%\Buttons\1,,,%LwForce.Button1.Desc%
  100. HKLM,%WgmOem.WgmForce%\Buttons\1,Attributes,1,02,00,00,00,09,00,02,00
  101. HKLM,%WgmOem.WgmForce%\Buttons\2,,,%LwForce.Button2.Desc%
  102. HKLM,%WgmOem.WgmForce%\Buttons\2,Attributes,1,02,00,00,00,09,00,03,00
  103. HKLM,%WgmOem.WgmForce%\Buttons\3,,,%LwForce.Button3.Desc%
  104. HKLM,%WgmOem.WgmForce%\Buttons\3,Attributes,1,02,00,00,00,09,00,04,00
  105. HKLM,%WgmOem.WgmForce%\Buttons\4,,,%LwForce.Button4.Desc%
  106. HKLM,%WgmOem.WgmForce%\Buttons\4,Attributes,1,02,00,00,00,09,00,05,00
  107. HKLM,%WgmOem.WgmForce%\Buttons\5,,,%LwForce.Button5.Desc%
  108. HKLM,%WgmOem.WgmForce%\Buttons\5,Attributes,1,02,00,00,00,09,00,06,00
  109. HKLM,%WgmOem.WgmForce%\Buttons\6,,,%LwForce.Button6.Desc%
  110. HKLM,%WgmOem.WgmForce%\Buttons\6,Attributes,1,02,00,00,00,09,00,07,00
  111. HKLM,%WgmOem.WgmForce%\Buttons\7,,,%LwForce.Button7.Desc%
  112. HKLM,%WgmOem.WgmForce%\Buttons\7,Attributes,1,02,00,00,00,09,00,08,00
  113. HKLM,%WgmOem.WgmForce%\Buttons\8,,,%LwForce.Button8.Desc%
  114. HKLM,%WgmOem.WgmForce%\Buttons\8,Attributes,1,02,00,00,00,09,00,09,00
  115. ;Wingman Rally USB
  116. [LwJoy.RallyForce.AddReg]
  117. HKR,,DriverDesc,,%USB\VID_046D&PID_C291.DeviceDesc%
  118. HKLM,%WgmOem.WgmRally%,OEMName,,%USB\VID_046D&PID_C291.DeviceDesc%
  119. HKLM,%WgmOem.WgmRally%,OEMData,1,01,00,00,10,06,00,00,00
  120. ;HKLM,%WgmOem.WgmRally%,ConfigCLSID,,%LwForce.CLSID%
  121. HKLM,%WgmOem.WgmRally%,OEMCallout,,%LwForce.CLSID.SysName%
  122. ; Force
  123. HKLM,%WgmOem.WgmRally%\Axes\0,,,%LwForce.XAxis.Desc%
  124. HKLM,%WgmOem.WgmRally%\Axes\0,Attributes,1,01,01,00,00,01,00,30,00
  125. HKLM,%WgmOem.WgmRally%\Axes\0,FFAttributes,1,0A,00,00,00,00,01,00,00
  126. HKLM,%WgmOem.WgmRally%\Axes\1,,,%LwForce.YAxis.Desc%
  127. HKLM,%WgmOem.WgmRally%\Axes\1,Attributes,1,01,01,00,00,01,00,31,00
  128. HKLM,%WgmOem.WgmRally%\Axes\1,FFAttributes,1,0A,00,00,00,00,01,00,00
  129. HKLM,%WgmOem.WgmRally%\Axes\2,,,%LwForce.ZAxis.Desc%
  130. HKLM,%WgmOem.WgmRally%\Axes\2,Attributes,1,01,01,00,00,01,00,32,00
  131. HKLM,%WgmOem.WgmRally%\Axes\2,FFAttributes,1,0A,00,00,00,00,01,00,00
  132. HKLM,%WgmOem.WgmRally%\Buttons\0,,,%LwForce.Button0.Desc%
  133. HKLM,%WgmOem.WgmRally%\Buttons\0,Attributes,1,02,00,00,00,09,00,01,00
  134. HKLM,%WgmOem.WgmRally%\Buttons\1,,,%LwForce.Button1.Desc%
  135. HKLM,%WgmOem.WgmRally%\Buttons\1,Attributes,1,02,00,00,00,09,00,02,00
  136. HKLM,%WgmOem.WgmRally%\Buttons\2,,,%LwForce.Button2.Desc%
  137. HKLM,%WgmOem.WgmRally%\Buttons\2,Attributes,1,02,00,00,00,09,00,03,00
  138. HKLM,%WgmOem.WgmRally%\Buttons\3,,,%LwForce.Button3.Desc%
  139. HKLM,%WgmOem.WgmRally%\Buttons\3,Attributes,1,02,00,00,00,09,00,04,00
  140. HKLM,%WgmOem.WgmRally%\Buttons\4,,,%LwForce.Button4.Desc%
  141. HKLM,%WgmOem.WgmRally%\Buttons\4,Attributes,1,02,00,00,00,09,00,05,00
  142. HKLM,%WgmOem.WgmRally%\Buttons\5,,,%LwForce.Button5.Desc%
  143. HKLM,%WgmOem.WgmRally%\Buttons\5,Attributes,1,02,00,00,00,09,00,06,00
  144. ;------------- STRING ---------------------------------------------