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.

89 lines
2.1 KiB

  1. ;
  2. ; INF.TXT
  3. ;
  4. ; This file is part of the WMIFILT sample filter driver in the
  5. ; Windows 2000 DDK. It is not a complete INF file.
  6. ; It lists the sections of your INF file that you need to
  7. ; change in order to have a filter driver loaded for your device.
  8. ;
  9. [Manufacturer]
  10. "ThisVendor"=THIS_VENDOR
  11. [THIS_VENDOR]
  12. ;
  13. ; Generic HID Interface (HidUsb as service)
  14. ;
  15. "My device description" = My_Install_Section, INSERT_PNP_ID_HERE
  16. [My_Install_Section.NT]
  17. ;
  18. ; This section name's prefix matches 'My_Install_Section' above.
  19. ; The appended ".NT" indicates Windows NT -specific processing.
  20. ;
  21. Copyfiles = MyCopyFiles
  22. AddReg = MyAddReg
  23. [My_Install_Section.NT.HW]
  24. ;
  25. ; Because of the ".HW" suffix,
  26. ; the 'AddReg' entries in this section apply to the device's
  27. ; hardware key (rather than the software key, as usual).
  28. ;
  29. AddReg = My_HW_AddReg
  30. [MyCopyFiles]
  31. ; mydriver.sys
  32. wmifilt.sys
  33. [MyAddReg]
  34. ;
  35. ; Insert regular (software-branch) registry entries here
  36. ;
  37. [My_Install_Section.NT.Services]
  38. ;
  39. ; The inf should already include a service entry for the device class.
  40. ; It'll look something like the line below. Keep that line in the inf.
  41. ;
  42. ; AddService = MyDriver,2,My_Service
  43. ; This is the filter service we're adding.
  44. AddService = FilterService,,Filter_Service_Inst
  45. [My_HW_AddReg]
  46. ;
  47. ; This HW-branch AddReg section adds values to the hardware-branch
  48. ; registry key of the device (under HKLM\System\CurrentControlSet\Enum).
  49. ;
  50. ; "LowerFilters" and "UpperFilters" are special values that indicate
  51. ; to the kernel that one or more filter drivers should be loaded along
  52. ; with the driver for this device.
  53. ;
  54. ; You may also include other values here. These values can be read
  55. ; by the driver. The 'SampleFilterParam' value is read by the filter.sys
  56. ; sample driver as an example.
  57. ;
  58. HKR,,"LowerFilters",0x00010000,"FilterService"
  59. ; or HKR,,"UpperFilters",0x00010000,"FilterService"
  60. HKR,,"SampleFilterParam",0x00010001,512
  61. [Filter_Service_Inst]
  62. DisplayName = "Filter Service"
  63. ServiceType = 1 ;%SERVICE_KERNEL_DRIVER%
  64. StartType = 3 ;%SERVICE_DEMAND_START%
  65. ErrorControl = 0 ;%SERVICE_ERROR_IGNORE%
  66. ServiceBinary = %12%\wmifilt.sys
  67. LoadOrderGroup = extended base