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.

151 lines
5.3 KiB

  1. ; Copyright (c) 1997-1999 Microsoft Corporation
  2. ;
  3. [Version]
  4. Signature="$CHICAGO$"
  5. Class=HIDClass
  6. ClassGuid={745a17a0-74d3-11d0-b6fe-00a0c90f57da}
  7. ;
  8. Provider=%VENDOR%
  9. LayoutFile=layout.inf
  10. DriverVer=08/06/1999,5.00.2000.1
  11. ;
  12. ; Layout.inf (etc.) list all files shipped with the operating system so the
  13. ; source description sections are only needed if other files are needed.
  14. ;
  15. ; In order to use IHV drivers, the SourceDisksNames section must list the
  16. ; disk(s) containing the drivers and the SourceDisksFiles section must list
  17. ; which disk number each file to be copied is found on.
  18. ; Disk number 99 is used to avoid a conflict with the disk numbers defined
  19. ; in layout.inf
  20. ;
  21. ; HidGame.Sys is the name of the standard analog game device driver so
  22. ; another name must be used for an IHV driver. NT will not load a driver
  23. ; compiled as HidGame.Sys and renamed as another so it must be compiled
  24. ; under it's final name.
  25. ;
  26. ; Files used in a driver installation need to be digitally signed otherwise
  27. ; installation may fail. See documentation elsewhere in the DDK regarding
  28. ; driver signing.
  29. ;
  30. ; [SourceDisksNames]
  31. ; 99=%DiskId%,,
  32. ;
  33. ; [SourceDisksFiles]
  34. ; hidgame.sys = 99
  35. [DestinationDirs]
  36. CopyFilesSYS = 10,system32\drivers ;%SystemRoot%\system32\drivers
  37. DefaultDestDir = 10,system32\drivers
  38. CopyFilesDLL = 11 ;%SystemRoot%\system or system32 - 98 or Win2000
  39. [ControlFlags]
  40. ExcludeFromSelect = GamePort\Joystick
  41. ExcludeFromSelect = GamePort\Gamepad
  42. ; Notes
  43. ;
  44. ; In order that the game controllers control panel can display the device
  45. ; name registry keys describing the device must be set up. In this sample
  46. ; these values are setup up in the Joystick.AddReg and Gamepad.AddReg
  47. ; sections. Clearly these values must be set up before the CPL can cause
  48. ; the PnP ID to be exposed.
  49. ;
  50. ; If no PnP ID match is found when a gameport device is exposed, the default
  51. ; driver will be matched. This allows most analog joysticks to be supported
  52. ; without an additional driver. Unfortunately, this means that a device
  53. ; which requires a driver must have its PnP ID matched or the default driver
  54. ; will be loaded. To avoid the user having to change the driver the INF
  55. ; containing the match may be copied into the INF directory in advance.
  56. ;
  57. ; To satisfy the two goals above, some form of preliminary setup is required.
  58. ; This could be a program, a batch file that runs an INF section or an INF
  59. ; with SetupClass=BASE and a DefaultInstall section.
  60. ;
  61. [Manufacturer]
  62. %VENDOR%=Vendor
  63. [Vendor]
  64. ;
  65. ; For each device the following must be defined:
  66. ; Device name - name seen in the Add New Hardware selection dialog
  67. ; Install section - section in this INF to be run to install the device
  68. ; PnP ID - ID which is matched by PnP when the device is detected
  69. ; This should not contain spaces and for Win98 compatibility
  70. ; should use the form GamePort\VID_9999&PID_9999.
  71. ; A PnP ID must be used or this device will be detected as
  72. ; always present and so loaded during boot even if the
  73. ; StartType of the service is SERVICE_DEMAND_START.
  74. ;
  75. ;Device Name Install Section PnP ID
  76. ;
  77. %Joystick%= Joystick.Inst, GamePort\VID_045E&PID_01FE
  78. %Gamepad%= Gamepad.Inst, GamePort\VID_045E&PID_01FF
  79. [Joystick.Inst]
  80. CopyFiles = CopyFilesSYS, CopyFilesDLL
  81. AddReg = Joystick.AddReg, AddReg.Vendor_Driver
  82. [Joystick.Inst.NT]
  83. CopyFiles = CopyFilesSYS, CopyFilesDLL
  84. AddReg = Joystick.AddReg
  85. [Joystick.AddReg]
  86. HKLM,%KEY_OEM%\VID_045E&PID_01FE,OEMName,,%Joystick%
  87. HKLM,%KEY_OEM%\VID_045E&PID_01FE,OEMData,1, 0, 0, 0, 0, 2, 0, 0, 0
  88. HKLM,%KEY_OEM%\VID_045E&PID_01FE,OEMHardwareID,,"GamePort\VID_045E&PID_01FE"
  89. [Joystick.Inst.NT.Services]
  90. AddService = VendorJoystickEnabler,%SPSVCINST_ASSOCSERVICE%,Vendor_Service_Inst
  91. [Gamepad.Inst]
  92. CopyFiles = CopyFilesSYS, CopyFilesDLL
  93. AddReg = Gamepad.AddReg, AddReg.Vendor_Driver
  94. [Gamepad.Inst.NT]
  95. CopyFiles = CopyFilesSYS, CopyFilesDLL
  96. AddReg = Gamepad.AddReg
  97. [Gamepad.AddReg]
  98. HKLM,%KEY_OEM%\VID_045E&PID_01FF,OEMName,,%Gamepad%
  99. HKLM,%KEY_OEM%\VID_045E&PID_01FF,OEMData, 1, 20, 0, 0, 0, 2, 0, 0, 0
  100. HKLM,%KEY_OEM%\VID_045E&PID_01FF,OEMHardwareID,,"GamePort\VID_045E&PID_01FF"
  101. [Gamepad.Inst.NT.Services]
  102. AddService = VendorJoystickEnabler,%SPSVCINST_ASSOCSERVICE%,Vendor_Service_Inst
  103. [CopyFilesSYS]
  104. HIDGame.sys
  105. HidClass.sys
  106. HidParse.sys
  107. [CopyFilesDLL]
  108. Hid.dll
  109. [AddReg.Vendor_Driver]
  110. HKR,,DevLoader,,*ntkern
  111. HKR,,NTMPDriver,,"hidgame.sys"
  112. [Vendor_Service_Inst]
  113. DisplayName = %SvcDesc%
  114. ServiceType = 1 ; SERVICE_KERNEL_DRIVER
  115. StartType = 3 ; SERVICE_DEMAND_START
  116. ErrorControl = 0 ; SERVICE_ERROR_IGNORE
  117. ServiceBinary = %10%\system32\drivers\hidgame.sys
  118. LoadOrderGroup = Extended Base
  119. [Strings]
  120. ; non localized strings
  121. SPSVCINST_ASSOCSERVICE= 0x00000002
  122. KEY_OEM="SYSTEM\CurrentControlSet\Control\MediaProperties\PrivateProperties\Joystick\OEM"
  123. ;localized strings
  124. VENDOR = "Vendor Inc."
  125. ; DiskId = "Vendor Joystick Installation and Drivers Disk"
  126. SvcDesc = "Vendor: Game device driver"
  127. Joystick = "Vendor: Joystick"
  128. Gamepad = "Vendor: Gamepad"