Re: Filering usb mouse data
- From: "Liang Fu" <liang_fu_dr@xxxxxxxxxxx>
- Date: Thu, 28 Apr 2005 15:33:20 -0400
Thanks for the help of all of you, I did make some progress.
After trying many things (I don't even remember what I have done) finally I
got FastInst ran to the end. I thought the problem were solved, but after
the reboot, the Device Manager shows moufiltr with a yellow warning mark and
in the property page it shows "This device cannot start (Code 10)".
Can you tell me what are the possible problems? are they in my INF file or
the mulfiltr does not work with my USB mouse (it works well with my PS2
mouse).
Thanks,
Liang Fu
"Liang Fu" <liang_fu_dr@xxxxxxxxxxx> wrote in message
news:ebtRA7gNFHA.3420@xxxxxxxxxxxxxxxxxxxxxxx
> Hi everyone,
> I have been discussing this problem on this site for a while. Although
I
> learned a lot in the process from the replies, I have not been able to
solve
> my original problem.
> I have successfully installed moufiltr on PS/2 port by simply change
the
> PNP ID (from *PNP0FAKE to *PNP0F13) in moufiltr.inf, and I was able to
> modify mouse data packets in MouFiltr_ServiceCalback routine, which worked
> beautifully. Now, I would like to do the same for my USB mouse. Following
> the instructions that I got from this site (I am so grateful to the kind
> help), I modified the moufiltr.inf (attached bellow) to install moufiltr
on
> top of HID system mouse. However, no matter what I tried, I always got
> "Error E0000219 in UpdateDriverForPlugAndPlayDevices:
> ERROR_NO_ASSOCIATED_SERVICE" in FastInst. Please, please help me identify
> the mistakes in my (modified) moufiltr.inf, any help is greatly
appreciated.
>
> Liang Fu
> =======================================
> ; moufiltr.inf
> ;
> ; Installation inf for the Device that needs flitering adapter.
> ;
> ; (c) Copyright 1999 Microsoft
> ;
>
> [Version]
> Signature="$Windows NT$"
> Provider=%DDK_Ex%
> ClassGUID={4D36E96F-E325-11CE-BFC1-08002BE10318}
> Class=Mouse
> CatalogFile=moufiltr.cat
> DriverVer=07/20/1999
>
> [DestinationDirs]
> DefaultDestDir = 12
>
> ;
> ; Driver information
> ;
>
> [Manufacturer]
> %DDK_Ex% = DDK_Ex.Mfg
>
> [DDK_Ex.Mfg]
> %DDK_Ex% = moufiltr, HID_DEVICE_SYSTEM_MOUSE
>
>
> ;
> ; General installation section
> ;
>
> [moufiltr]
> ; perform port related actions from msmouse.inf
> Include=msmouse.inf
> Needs=HID_Mouse_Inst
>
> ; Copy the driver over
> CopyFiles=moufiltr.CopyFiles
>
>
> ;
> ; File sections
> ;
>
> [moufiltr.CopyFiles]
> moufiltr.sys
>
>
> ;
> ; Service Installation
> ;
>
> [moufiltr.Services]
> AddService = moufiltr, , moufiltr_Service_Inst
> ; Install the port driver and mouclass from msmouse.inf
> Include=msmouse.inf
> Needs=HID_Mouse_Inst.NT.Services
>
> [moufiltr_Service_Inst]
> DisplayName = %moufiltr.SvcDesc%
> ServiceType = 1 ; SERVICE_KERNEL_DRIVER
> StartType = 3 ; SERVICE_DEMAND_START
> ErrorControl = 0 ; SERVICE_ERROR_IGNORE
> LoadOrderGroup = Pointer Port
> ServiceBinary = %12%\moufiltr.sys
>
> [moufiltr.HW]
> ; Add the device upper filter
> AddReg = moufiltr.HW.AddReg
>
> ; run the directives need by the port driver
> Include=msmouse.inf
> Needs=HID_Mouse_Inst.HW
>
> [moufiltr.HW.AddReg]
> HKR,,"UpperFilters",0x00010000,"moufiltr"
>
>
> ;
> ; Source file information
> ;
>
> ; use [SourceDisksNames.x86] for x86 only installs
> ; use [SourceDisksNames.alpha] for alpha only installs
>
> [SourceDisksNames]
> 1 = %DiskId1%,,,
>
> [SourceDisksFiles]
> moufiltr.sys = 1,,
>
>
> [Strings]
>
> ;
> ; Non-Localizable Strings
> ;
>
> REG_SZ = 0x00000000
> REG_MULTI_SZ = 0x00010000
> REG_EXPAND_SZ = 0x00020000
> REG_BINARY = 0x00000001
> REG_DWORD = 0x00010001
> SERVICEROOT = "System\CurrentControlSet\Services"
>
> ;
> ; Localizable Strings
> ;
>
> DiskId1 = "DDK Example Installation Disk #1 (Mouse)"
> DDK_Ex = "DDK Example Device that needs flitering"
> moufiltr.SvcDesc="Mouse Filter Example"
>
>
>
>
.
- References:
- Filering usb mouse data
- From: Liang Fu
- Filering usb mouse data
- Prev by Date: Re: Override kernel exception handler?
- Next by Date: Re: PDBR
- Previous by thread: Re: Filering usb mouse data
- Next by thread: Re: DrvResetPDEV ??
- Index(es):
Relevant Pages
|