阅读:2375回复:10
怎样制作一个我的kbfilter程序
我想仿照DS(DriverStudio.v3.0Beta2)下面的kbfilter例子,编写一个Mykbfilter键盘过滤型驱动,但是我自己编写的Mykbfilter却安装不成功,我的生成步骤和安装结果如下图,请各位老大指点迷津!
|
|
沙发#
发布于:2005-04-25 09:40
看样子是你安装的问题了。。安装过滤驱动最好跟功能驱动一起安装比较方便,,(在功能驱动的INF文件中加入相应的注册表项)
前两天在驱网上看到有人贴了一个(很老的帖子了),,专门安装过滤驱动的程序,, 可惜啊,,下不动,,你可以找找,看你下的了吗?。。。 再有就是,,你看看DDK里关于过滤驱动的安装部分,,里面有关于修改功能驱动的INF来安装顾虑驱动的说明。。。 因为我也没有具体的试验过安装过滤驱动,,只是给你一点建议了 希望对你有所帮助。。。 |
|
|
板凳#
发布于:2005-04-25 09:42
把你的INF贴上来吧,,,看看。。。
|
|
|
地板#
发布于:2005-04-25 13:55
DS带的例子可以正常安装,我采用自动生成的inf安装失败后,将DS自带例子的inf文件中的kbfilter替换为mykbfilter安装也出现同样的问题。下面是我用的inf文件:
;; MyKbfilter.inf - INF file for WDM keyboard filter example ;; Copyright (c) 1997-2000 Compuware Corporation, Inc. ;--------- Version Section --------------------------------------------------- [Version] Signature=\"$Windows NT$\" SignOS=Windows 2000 Provider=%ProviderName% Class=Keyboard ClassGUID={4D36E96B-E325-11CE-BFC1-08002BE10318} DriverVer=11/10/2000,1.0.0.0 ;--------- SourceDiskNames and SourceDiskFiles Section ----------------------- ; These sections identify source disks and files for installation. They are ; shown here as an example, but commented out. ;[SourceDisksNames] ;1 = \"Install Disk\",Disk1,, ;[SourceDisksFiles] ;MyKbfilter.sys = 1,, ;--------- DestinationDirs Section ------------------------------------------- [DestinationDirs] DefaultDestDir = 12 ;--------- Manufacturer and Models Sections ---------------------------------- [Manufacturer] %MfgName%=Mfg0 [Mfg0] %*PNP0BAAD.DeviceDesc% =PS2_MyKbfilter_DDI, *PNP0BAAD %HID\\SimpleKeyboardFilter.DeviceDesc% =HID_MyKbfilter_DDI, HID\\SimpleKeyboardFilter ;---------- DDInstall Sections ----------------------------------------------- ; --------- Windows 2000 ----------------- ; --------- PS2 [PS2_MyKbfilter_DDI.NT] Include=keyboard.inf Needs=STANDARD_Inst CopyFiles=MyKbfilter_Files_Driver [PS2_MyKbfilter_DDI.NT.Services] Include=keyboard.inf Needs=STANDARD_Inst.Services Addservice = MyKbfilter, 0x00000002, MyKbfilter_AddService [PS2_MyKbfilter_DDI.NT.HW] Include=keyboard.inf Needs=STANDARD_Inst.HW AddReg = MyKbfilter_DDI_HW_AddReg ; --------- USB [HID_MyKbfilter_DDI.NT] Include=keyboard.inf Needs=HID_Keyboard_Inst.NT CopyFiles=MyKbfilter_Files_Driver [HID_MyKbfilter_DDI.NT.Services] Include=keyboard.inf Needs=HID_Keyboard_Inst.NT.Services Addservice = MyKbfilter, 0x00000002, MyKbfilter_AddService [HID_MyKbfilter_DDI.NT.HW] Include=keyboard.inf Needs=HID_Keyboard_Inst.NT.HW AddReg = MyKbfilter_DDI_HW_AddReg [MyKbfilter_AddService] DisplayName = %SvcDesc% ServiceType = 1 ; SERVICE_KERNEL_DRIVER StartType = 3 ; SERVICE_DEMAND_START ErrorControl = 1 ; SERVICE_ERROR_NORMAL LoadOrderGroup = Keyboard Port ServiceBinary = %12%\\MyKbfilter.sys ; --------- Files (common) ------------- [MyKbfilter_Files_Driver] MyKbfilter.sys [MyKbfilter_DDI_HW_AddReg] HKR,,\"UpperFilters\",0x00010000,\"MyKbfilter\" ;--------- Strings Section --------------------------------------------------- [Strings] ProviderName=\"Compuware NuMega\" MfgName=\"Compuware NuMega\" DeviceClassName=\"Description of Device class here\" SvcDesc=\"Compuware Keyboard Filter Example\" *PNP0BAAD.DeviceDesc =\"Compuware PS/2 Keyboard Filter Driver\" HID\\SimpleKeyboardFilter.DeviceDesc=\"Compuware USB Keyboard Filter Driver\" |
|
地下室#
发布于:2005-04-25 14:57
我也没有实际的弄过这东东。。。。你改改这看行不行吧,,,,
不行的话,,我也没有办法了。。。呵呵。。。 [PS2_MyKbfilter_DDI.NT.HW] Include=keyboard.inf Needs=STANDARD_Inst.HW AddReg = MyKbfilter_DDI_HW_AddReg 改为 [PS2_MyKbfilter_DDI.NT.HW] AddReg = MyKbfilter_DDI_HW_AddReg [HID_MyKbfilter_DDI.NT.HW] Include=keyboard.inf Needs=HID_Keyboard_Inst.NT.HW AddReg = MyKbfilter_DDI_HW_AddReg 改为: [HID_MyKbfilter_DDI.NT.HW] AddReg = MyKbfilter_DDI_HW_AddReg 不知道行不,,,,试试吧,,, [编辑 - 4/25/05 by aiwadgj] |
|
|
5楼#
发布于:2005-04-25 15:02
还有啊,,怎么你那两个安装段里没有AddReg那,,?
|
|
|
6楼#
发布于:2005-04-25 15:06
还有啊,,怎么你那两个安装段里没有AddReg那,,? 这种可能不要AddReg就可以了,,也就这样了,,试试吧,,, |
|
|
7楼#
发布于:2005-04-25 15:28
哪位老大给出来弄弄啊。。。。
就是那个include跟need,是只在安装段加一次就可以了?还是其余的对应的段都应该加啊?。。。 |
|
|
8楼#
发布于:2005-04-25 15:35
哪位老大给出来弄弄啊。。。。 按理说这些段都是可选的,,但是像这种过滤驱动的,,应该加那些段的吧,,哪位老大出来总结一下啊,,谢谢了哦。。。 :P |
|
|
9楼#
发布于:2005-04-25 16:54
终于找到错误的地方了
[Strings] ProviderName=\"Compuware NuMega\" MfgName=\"Compuware NuMega\" DeviceClassName=\"Description of Device class here\" SvcDesc=\"Compuware Keyboard Filter Example\" 这个是DS自带时的,由于我安装了DS自带的kbfilter没有卸载,然后又用了这个相同的设置,所以我的MyKbfilter安装会出错,现在错误查出来,才记起来我上次在其他人的帖子中看到了类似的问题,错误找出来终于舒服了! 感谢楼上老大的热情帮助! |
|
10楼#
发布于:2005-04-25 17:56
终于找到错误的地方了 呵呵,,我也学了不少东东。。。。 :cool: |
|
|