Re: Opening a Filter Driver

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Don Burn (burn_at_stopspam.acm.org)
Date: 05/21/04


Date: Fri, 21 May 2004 17:17:08 -0400

With filters you have two choices:

      You can add IoControls to the standard path that your filter
intercepts and processes. In this it would be just like normal PCI driver
DeviceIoControl routine, except that if you do not recognize the IOCTL value
you pass it to the driver below you. This is the easy approach in that all
the naming etc, is handled by the device below you.

      Or you can build your own, but yes then you have to dig out the name
of other identifier for the mouse and the create your own name corresponding
to it, for instance mouse1 could have bimo1.

       You are attaching to the top of another driver, so you can issue
requests to the lower driver using IoCallDriver. Hopefully you have taken a
long look at the moufiltr sample in the DDK.

-- 
Don Burn (MVP, Windows DDK)
Windows 2k/XP/2k3 Filesystem and Driver Consulting
Remove StopSpam from the email to reply
"Bimo" <lars.void@mail.dk> wrote in message
news:O0VBdd3PEHA.3240@TK2MSFTNGP10.phx.gbl...
> "Don Burn" <burn@stopspam.acm.org> skrev i en meddelelse
> news:10asm49a76ene69@corp.supernews.com...
>
> > Since you are filtering a device you need to open the device, not the
> > filter.  If you wish to have a seperate control path for the filter, you
> > should create another device object in the filter to send control
requests
> > to.
>
> So how do I send control information to a mouse ?
> And how do I make sure its the correct mouse if more mice attached ?
>
> TIA
>
>


Relevant Pages

  • Re: WDF Class Filter Driver Installation
    ... I've installed the driver as a boot time ... WdfLdr: DllInitialize - OsVersion ... It seems that making the driver an upper filter of the System Setup ... what right clicking on the inf file -> Install would do for non-Wdf ...
    (microsoft.public.development.device.drivers)
  • Re: system monitoring
    ... load the driver. ... I would be curious to see a reference to this WHQL ... because you used the term "legacy filter", especially since if he did want ... the new file system mini-filter model and KMDF ...
    (microsoft.public.win32.programmer.kernel)
  • Re: programmatically install a class filter driver
    ... If your filter is creating a control device for communication, ... device and specify security such that only a unique account that you set up ... Windows 2k/XP/2k3 Filesystem and Driver Consulting ...
    (microsoft.public.development.device.drivers)
  • Re: How to define IKsObject from ksproxy.h ?
    ... If you are keen on getting the scheme with the service - kernel driver to ... In the driver queue incoming buffers in device object not per filter because ... > can show only real web camera or ks minidriver it their hw camera list. ... > error code 50 in user mode. ...
    (microsoft.public.development.device.drivers)
  • Re: kbfiltr question
    ... I am afraid usbhub is COMPLETELY irrelevant in this discussion -it just ... Therefore, it is more of a bus driver, rather than FDO..... ... how would you describe the filter in between Usbstor.sys ... [device lower filters] ...
    (microsoft.public.development.device.drivers)