阅读:2925回复:8
driverstdio中的kbfilter例子如何装? 我是xp系统sp/2接口
我重新编译了一下drivestdio例子程序的kbfilter
产生了sys文件 1.我直接利用里面的inf文件安装 当我用fastinst的时候 用drivermonitor看不到程序进入driverentry()。可以看到adddivice()为什么? 2.当我用硬件向导手动安装的时候,我不知道选择哪个类别的硬件进行安装 ?? 3。用fastinst安装过程中,会提示找不到硬件。为什么?? 4。我用的是sp/2键盘,好像我在敲键盘的时候那个dirvermonitor里面没有动静呀 连测试语句都输不出来 5高手可一告诉我一个在drivermonitor看到t<<语句的方法吗?? 或者是我那个filter根本没有装上去?? (下面的可以不看)贴一下我的inf文件 我没有改动 是例子里面的 /////////////////////////////////////////// ///////////////////////////////////////////////// ;; kbfilter.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] ;kbfilter.sys = 1,, ;--------- DestinationDirs Section ------------------------------------------- [DestinationDirs] DefaultDestDir = 12 ;--------- Manufacturer and Models Sections ---------------------------------- [Manufacturer] %MfgName%=Mfg0 [Mfg0] %*PNP0BAAD.DeviceDesc% =PS2_kbfilter_DDI, *PNP0BAAD %HID\\SimpleKeyboardFilter.DeviceDesc% =HID_kbfilter_DDI, HID\\SimpleKeyboardFilter ;---------- DDInstall Sections ----------------------------------------------- ; --------- Windows 2000 ----------------- ; --------- PS2 [PS2_kbfilter_DDI.NT] Include=keyboard.inf Needs=STANDARD_Inst CopyFiles=kbfilter_Files_Driver [PS2_kbfilter_DDI.NT.Services] Include=keyboard.inf Needs=STANDARD_Inst.Services Addservice = kbfilter, 0x00000002, kbfilter_AddService [PS2_kbfilter_DDI.NT.HW] Include=keyboard.inf Needs=STANDARD_Inst.HW AddReg = kbfilter_DDI_HW_AddReg ; --------- USB [HID_kbfilter_DDI.NT] Include=keyboard.inf Needs=HID_Keyboard_Inst.NT CopyFiles=kbfilter_Files_Driver [HID_kbfilter_DDI.NT.Services] Include=keyboard.inf Needs=HID_Keyboard_Inst.NT.Services Addservice = kbfilter, 0x00000002, kbfilter_AddService [HID_kbfilter_DDI.NT.HW] Include=keyboard.inf Needs=HID_Keyboard_Inst.NT.HW AddReg = kbfilter_DDI_HW_AddReg [kbfilter_AddService] DisplayName = %SvcDesc% ServiceType = 1 ; SERVICE_KERNEL_DRIVER StartType = 3 ; SERVICE_DEMAND_START ErrorControl = 1 ; SERVICE_ERROR_NORMAL LoadOrderGroup = Keyboard Port ServiceBinary = %12%\\kbfilter.sys ; --------- Files (common) ------------- [kbfilter_Files_Driver] kbfilter.sys [kbfilter_DDI_HW_AddReg] HKR,,\"UpperFilters\",0x00010000,\"kbfilter\" ;--------- 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\" |
|
|