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.

121 lines
3.2 KiB

  1. ;
  2. ; ValueAdd.Inf
  3. ;
  4. ;*** Created 4/98 (kenray)
  5. ;
  6. ; This Sample Inf file maps directly to input.inf, with the only
  7. ; the addition of the [HID_Inst.NT.HW] section.
  8. ;
  9. [Version]
  10. Signature="$WINDOWS NT$"
  11. Class=HIDClass
  12. ClassGuid={745a17a0-74d3-11d0-b6fe-00a0c90f57da}
  13. Provider=%MSFT%
  14. LayoutFile=layout.inf
  15. [ControlFlags]
  16. ExcludeFromSelect = *
  17. [DestinationDirs]
  18. DefaultDestDir = 12
  19. HID_Inst.CopyFilesDLL.NT = 11
  20. [ClassInstall]
  21. Addreg=HIDClassReg
  22. [HIDClassReg]
  23. HKR,,,,%HID.ClassName%
  24. ;
  25. ;
  26. HKR,,Icon,,-20
  27. [ClassInstall32]
  28. Addreg=HIDClassReg32
  29. [HIDClassReg32]
  30. HKR,,,,%HID.ClassName%
  31. HKR,,Icon,,-24
  32. [Manufacturer]
  33. ; Keybaords
  34. %MICROSOFT%=MICROSOFT
  35. [MICROSOFT]
  36. ;
  37. ; Generic HID Interface (HidUsb as service)
  38. ;
  39. %HID.DeviceDesc% = HID_Inst,GENERIC_HID_DEVICE,USB\Class_03&SubClass_01,USB\Class_03
  40. ;
  41. ; NB: here you would normally put your vendor specific match for the driver
  42. ; in question.
  43. ;
  44. ;=====================================================================
  45. [HID_Inst.NT]
  46. Copyfiles = HID_Inst.CopyFiles.NT, HID_Inst.CopyFilesDLL.NT
  47. [HID_Inst.NT.HW]
  48. AddReg = HID_Inst.AddReg.NT
  49. ; This is the hardware installation section of this inf file.
  50. ; (This is the only modification from the input.inf file from which this
  51. ; value added inf file was derived.)
  52. ; This key defines HKeyRelative (HKR) to be the hardware instance key of the
  53. ; dev node installed.
  54. ; The add reg section following add the all important lower filter values.
  55. ;
  56. [HID_Inst.NT.Services]
  57. ;AddService = HidUsb,%SPSVCINST_ASSOCSERVICE%,HID_Service_Inst
  58. AddService = HidUsb,0x00000002,HID_Service_Inst
  59. AddService = valueadd,,ValueAdd_Service_Inst
  60. ; Sub Sections
  61. [HID_Inst.CopyFiles.NT]
  62. hidusb.sys
  63. hidclass.sys
  64. hidparse.sys
  65. [HID_INST.CopyFilesDLL.NT]
  66. hid.dll
  67. [HID_Inst.AddReg.NT]
  68. HKR,,"LowerFilters",0x00010000,"valueadd"
  69. HKR,,"VendorSpooge",0x00010000,"C is for cookie"
  70. ; LowerFilters (just like UpperFilters) is the special value added to the
  71. ; parameters of the device instance of a devnode which instructs the PlugPlay
  72. ; system to load the specified driver as the filter.
  73. ;
  74. ; Also in this section the vendor may add values which can later be retrieved
  75. ; ssing the call IoGetOpenDeviceRegistryKey (using PLUGPLAY_REGKEY_DEVICE)
  76. ; which opens the device parameter key in which these values are storred.
  77. ;
  78. ; NB LowerFilters and UpperFilters being special values are not stored in the
  79. ; device parameters key but in the parent key.
  80. ;
  81. [HID_Service_Inst]
  82. DisplayName = %HID.SvcDesc%
  83. ServiceType = 1 ; %SERVICE_KERNEL_DRIVER%
  84. StartType = 2 ;%SERVICE_AUTO_START%
  85. ErrorControl = 1 ;%SERVICE_ERROR_IGNORE%
  86. ServiceBinary = %12%\hidusb.sys
  87. LoadOrderGroup = extended base
  88. [ValueAdd_Service_Inst]
  89. DisplayName = %ValueAdd.SvcDesc%
  90. ServiceType = 1 ;%SERVICE_KERNEL_DRIVER%
  91. StartType = 2 ;%SERVICE_AUTO_START%
  92. ErrorControl = 1 ;%SERVICE_ERROR_IGNORE%
  93. ServiceBinary = %12%\valueadd.sys
  94. LoadOrderGroup = extended base
  95. [strings]
  96. MSFT = "Microsoft"
  97. MICROSOFT = "Microsoft"
  98. HID.DeviceDesc = "HID Compliant Device"
  99. HID.DefaultDevice = "HID Default Device"
  100. HID.ClassName = "Human Input Devices (HID)"
  101. HID.SvcDesc = "Microsoft HID Class Driver"
  102. ValueAdd.SvcDesc = "Microsoft Sample ValueAdd Driver"