Re: Opening a Filter Driver
From: Don Burn (burn_at_stopspam.acm.org)
Date: 05/21/04
- Next message: Eliyas Yakub [MSFT]: "Re: QUERY_INTERFACE crashes USBHUB following reenable"
- Previous message: Bimo: "Re: Opening a Filter Driver"
- In reply to: Bimo: "Re: Opening a Filter Driver"
- Next in thread: Bimo: "Re: Opening a Filter Driver"
- Reply: Bimo: "Re: Opening a Filter Driver"
- Messages sorted by: [ date ] [ thread ]
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 > >
- Next message: Eliyas Yakub [MSFT]: "Re: QUERY_INTERFACE crashes USBHUB following reenable"
- Previous message: Bimo: "Re: Opening a Filter Driver"
- In reply to: Bimo: "Re: Opening a Filter Driver"
- Next in thread: Bimo: "Re: Opening a Filter Driver"
- Reply: Bimo: "Re: Opening a Filter Driver"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|