windows-nt/Source/XPSP1/NT/base/ntos/wmi/sample/wmifilt/inf.htm

118 lines
3.4 KiB
HTML
Raw Normal View History

2020-09-26 03:20:57 -05:00
<html>
<head>
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>New Page 1</title>
</head>
<body>
<p>;<br>
; INF.TXT<br>
;<br>
; This file is part of the WMIFILT sample filter driver in the<br>
; Windows 2000 DDK. It is not a complete INF file.<br>
; It lists the sections of your INF file that you need to<br>
; change in order to have a filter driver loaded for your device.<br>
;<br>
<br>
<br>
[Manufacturer]<br>
&quot;ThisVendor&quot;=THIS_VENDOR<br>
<br>
[THIS_VENDOR]<br>
;<br>
; Generic HID Interface (HidUsb as service)<br>
;<br>
&quot;My device description&quot; = My_Install_Section, INSERT_PNP_ID_HERE<br>
<br>
<br>
<br>
[My_Install_Section.NT]<br>
;<br>
; This section name's prefix matches 'My_Install_Section' above.<br>
; The appended &quot;.NT&quot; indicates Windows NT -specific processing.<br>
;<br>
Copyfiles = MyCopyFiles<br>
AddReg = MyAddReg<br>
<br>
<br>
[My_Install_Section.NT.HW]<br>
;<br>
; Because of the &quot;.HW&quot; suffix,<br>
; the 'AddReg' entries in this section apply to the device's<br>
; hardware key (rather than the software key, as usual).<br>
;<br>
AddReg = My_HW_AddReg<br>
<br>
<br>
[MyCopyFiles]<br>
; mydriver.sys<br>
wmifilt.sys<br>
<br>
<br>
[MyAddReg]<br>
;<br>
; Insert regular (software-branch) registry entries here<br>
;<br>
<br>
;<br>
; Include the list of classes that you wish to show up as property <br>
; pages within the device manager. The list should be a comma separated<br>
; list of WMI class names that are specifed in the MOF for the driver<br>
;<br>
HKR,,&quot;WmiConfigClasses&quot;,0x00000000,&quot;Vendor_SampleClass4,Vendor_SampleClass6&quot;<br>
<br>
;<br>
; Specify that wmiprop.dll should be a device co installer<br>
;<br>
HKLM,System\CurrentControlSet\Control\CoDeviceInstallers,{&lt;***Your Class Guid
Goes Here***},0x00010008,&quot;WmiProp.dll,WmiPropCoInstaller&quot;<br>
<br>
<br>
[My_Install_Section.NT.Services]<br>
;<br>
; The inf should already include a service entry for the device class.<br>
; It'll look something like the line below. Keep that line in the inf.<br>
;<br>
; AddService = MyDriver,2,My_Service<br>
<br>
; This is the filter service we're adding.<br>
AddService = FilterService,,Filter_Service_Inst<br>
<br>
<br>
<br>
[My_HW_AddReg]<br>
;<br>
; This HW-branch AddReg section adds values to the hardware-branch<br>
; registry key of the device (under HKLM\System\CurrentControlSet\Enum).<br>
;<br>
; &quot;LowerFilters&quot; and &quot;UpperFilters&quot; are special values that indicate<br>
; to the kernel that one or more filter drivers should be loaded along<br>
; with the driver for this device.<br>
;<br>
; You may also include other values here. These values can be read<br>
; by the driver. The 'SampleFilterParam' value is read by the filter.sys<br>
; sample driver as an example.<br>
;<br>
HKR,,&quot;LowerFilters&quot;,0x00010000,&quot;FilterService&quot;<br>
; or HKR,,&quot;UpperFilters&quot;,0x00010000,&quot;FilterService&quot;<br>
HKR,,&quot;SampleFilterParam&quot;,0x00010001,512<br>
<br>
<br>
[Filter_Service_Inst]<br>
DisplayName = &quot;Filter Service&quot;<br>
ServiceType = 1 ;%SERVICE_KERNEL_DRIVER%<br>
StartType = 3 ;%SERVICE_DEMAND_START%<br>
ErrorControl = 0 ;%SERVICE_ERROR_IGNORE%<br>
ServiceBinary = %12%\wmifilt.sys<br>
LoadOrderGroup = extended base<br>
<br>
&nbsp;</p>
</body>
</html>