Hi,

I wanted to write a Mouse filter driver which will intercept the mouse
click and trigger the user applications like those in the logitech ,
but not their own.. i wanted to invoke my own applicatoins.
I have tried to write the mouse driver but got stuck..
I am stuck at this point as what approach I should take? If I should
take the HID class help or what ... ?
I have fair understanding of the WDM but not done any fillter
drivers...
I want to the driver on the machines and configure the mouse to open my
application intercepting the mouse clicks..
I would really appreciate if anybody gives me the proper direction on
designing the driver..

thanks.
--
Abhijit.

Re: Write a WDM driver by Gary

Gary
Tue Mar 07 10:44:35 CST 2006

Just how long have you been looking at the mouse and keyboard filter driver
samples in the DDK? I'd recommend you use KMDF, which has samples also.
--
The personal opinion of
Gary G. Little

<abhijitcpawar@gmail.com> wrote in message
news:1141737860.499393.206310@z34g2000cwc.googlegroups.com...
> Hi,
>
> I wanted to write a Mouse filter driver which will intercept the mouse
> click and trigger the user applications like those in the logitech ,
> but not their own.. i wanted to invoke my own applicatoins.
> I have tried to write the mouse driver but got stuck..
> I am stuck at this point as what approach I should take? If I should
> take the HID class help or what ... ?
> I have fair understanding of the WDM but not done any fillter
> drivers...
> I want to the driver on the machines and configure the mouse to open my
> application intercepting the mouse clicks..
> I would really appreciate if anybody gives me the proper direction on
> designing the driver..
>
> thanks.
> --
> Abhijit.
>



Re: Write a WDM driver by abhijitcpawar

abhijitcpawar
Tue Mar 07 22:24:55 CST 2006

Thaks Gary for the quick response.
Actually all I wanted to do is alter the mouse functionality ...
Thats why I wanted to write a WDM Driver..
I am not that much aware of KMDF..
so things are getting little clumsy...
Please let me know the direction..
--
Abhijit.
Gary G. Little wrote:
> Just how long have you been looking at the mouse and keyboard filter driver
> samples in the DDK? I'd recommend you use KMDF, which has samples also.
> --
> The personal opinion of
> Gary G. Little
>
> <abhijitcpawar@gmail.com> wrote in message
> news:1141737860.499393.206310@z34g2000cwc.googlegroups.com...
> > Hi,
> >
> > I wanted to write a Mouse filter driver which will intercept the mouse
> > click and trigger the user applications like those in the logitech ,
> > but not their own.. i wanted to invoke my own applicatoins.
> > I have tried to write the mouse driver but got stuck..
> > I am stuck at this point as what approach I should take? If I should
> > take the HID class help or what ... ?
> > I have fair understanding of the WDM but not done any fillter
> > drivers...
> > I want to the driver on the machines and configure the mouse to open my
> > application intercepting the mouse clicks..
> > I would really appreciate if anybody gives me the proper direction on
> > designing the driver..
> >
> > thanks.
> > --
> > Abhijit.
> >


Re: Write a WDM driver by Tim

Tim
Thu Mar 09 00:36:16 CST 2006

abhijitcpawar@gmail.com wrote:
>
>I wanted to write a Mouse filter driver which will intercept the mouse
>click and trigger the user applications like those in the logitech ,
>but not their own..

It is not necessary to dive into kernel mode for this. You can write a
windows hook to catch mouose clicks and do what you want.
--
- Tim Roberts, timr@probo.com
Providenza & Boekelheide, Inc.

Re: Write a WDM driver by Abhijit

Abhijit
Thu Mar 09 10:01:01 CST 2006

Yeah, Thatss true.

But my objective here is to write a driver for it.
I have already started on it and has a skeleton ready for the driver
with basic IRP handling and IOCTLS.
I just need to catch the mouse events generated...
I am looking how can I pass those events designated as IOCTL to my
driver...
Is the driver sitting as a filter able to catch those events?
What IOCTLs it will generate... press this key , pressed that button?
Actully i just wanted to alter the default working by overriding with
my driver.
Is this possible?
Also If I have to write a driver , suppose a startup driver then which
device is recommended
to which I can apply the driver..
I have searched a lot and thought mouse will be better option...
Is there any other simple hardware I can control , then please advise
as well..

thanks.
--
Abhijit.


Re: Write a WDM driver by Ray

Ray
Thu Mar 09 16:28:47 CST 2006

I have always thought that there was no way to (cleanly) use a Windows
hook to actually *intercept* (i.e. prevent delivery of) mouse clicks and
do something else instead. I've often stated that such a need is the
only reason to write a mouse filter driver.

Do you know something I don't?

Tim Roberts wrote:
> abhijitcpawar@gmail.com wrote:
>> I wanted to write a Mouse filter driver which will intercept the mouse
>> click and trigger the user applications like those in the logitech ,
>> but not their own..
>
> It is not necessary to dive into kernel mode for this. You can write a
> windows hook to catch mouose clicks and do what you want.


--
Ray

Re: Write a WDM driver by Tim

Tim
Fri Mar 10 22:22:23 CST 2006

Ray Trent <rat@nospam.nospam> wrote:
>
>I have always thought that there was no way to (cleanly) use a Windows
>hook to actually *intercept* (i.e. prevent delivery of) mouse clicks and
>do something else instead. I've often stated that such a need is the
>only reason to write a mouse filter driver.
>
>Do you know something I don't?

Highly doubtful. If you are speaking from hard experience, I defer to you
in this.
--
- Tim Roberts, timr@probo.com
Providenza & Boekelheide, Inc.