How to disable mouse?

Hi All!

I need to disable mouse (movements and buttons) for some time.
Please advise, how it can be implemented?

Thanks much for any ideas.

Best regards,
Felix

Felix K wrote:

I need to disable mouse (movements and buttons) for some time.
Please advise, how it can be implemented?

Why do you need to do this? The “how” most likely depends on the “why”.


Walter Oney, Consulting and Training
Basic and Advanced Driver Programming Seminars
Now teaming with John Hyde for USB Device Engineering Seminars
Check out our schedule at http://www.oneysoft.com

Hello Walter,

WO> Felix K wrote:

> I need to disable mouse (movements and buttons) for some time.
> Please advise, how it can be implemented?

WO> Why do you need to do this? The “how” most likely depends on the “why”.

I need to implement mouse locking function in my security application.
The application has a driver, so kernel mode solution is acceptable too.

Please help.

WO> –
WO> Walter Oney, Consulting and Training
WO> Basic and Advanced Driver Programming Seminars
WO> Now teaming with John Hyde for USB Device Engineering Seminars
WO> Check out our schedule at http://www.oneysoft.com

P.S. Thanks for excellent WDM book!

Felix.

Felix K wrote:

I need to implement mouse locking function in my security application.
The application has a driver, so kernel mode solution is acceptable too.

A way to do this would be to insert a class filter driver in the mouse
stack below MOUCLASS. Use a private IOCTL or WMI control to tell the
filter when to discard mouse reports coming up from below. The MOUFILTR
sample in the DDK should get you started. Search the Microsoft knowledge
base for an article about how to create a “control” device object (I
call it an Extra Device Object in the 2d ed of my WDM book) that your
app can talk to.


Walter Oney, Consulting and Training
Basic and Advanced Driver Programming Seminars
Now teaming with John Hyde for USB Device Engineering Seminars
Check out our schedule at http://www.oneysoft.com