newbie: install moufiltr example

Hey everyone,

A real newbie question here… I’d like to use the moufiltr example as a “hello world” starting point for playing/learning about windows drivers development. I’ve downloaded the DDK, and built the moufiltr example. I’d now like to install it so I can start mucking with the code to understand what’s going on. Is there a simple few steps I can follow to easily get this out-of-the-box build up and running? Thanks for the help.

~Dave

http://www.osronline.com/article.cfm?article=157

m.

xxxxx@yahoo.com wrote:

Hey everyone,

A real newbie question here… I’d like to use the moufiltr example as a “hello world” starting point for playing/learning about windows drivers development. I’ve downloaded the DDK, and built the moufiltr example. I’d now like to install it so I can start mucking with the code to understand what’s going on. Is there a simple few steps I can follow to easily get this out-of-the-box build up and running? Thanks for the help.

~Dave


Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer

Is your end game that you want to know how to write a driver in general or do you have a specific driver you want to write? Moufiltr is actually quite empty. Outside of the boilerplate pnp/power code, there is very little there to learn. There could be better samples out there depending on the results you want.

I would recommend that you download KMDF, http://www.microsoft.com/whdc/driver/wdf/KMDF_pkg.mspx, so that you don’t have to learn all the boilerplate pnp/power code and just focus in on the rest of the driver mdoel.

There are a ton of whitepapers on WHDC, starting at http://www.microsoft.com/whdc/driver/default.mspx, have you looked through them to see if any of them help?

d

Thanks for the suggestions so far. My requirements are actually pretty basic (I hope). For now, I just need to write a lower filter for the Windows PS/2 mouse driver so I can intercept/modify mouse actions. I was hoping to get the stock moufiltr installed, then just add the functionality I need.

I’ve tried using OSRLOADERwith the built moufiltr.sys. It successfully registered the service, but when I try to start it, I get an Eror of “service cannot be started, either because it is disabled or because it has no enabled devices associated with it.”

Thanks again,
~Dave

>hope). For now, I just need to write a lower filter for the Windows PS/2
mouse

driver so I can intercept/modify mouse actions.

You need upper filter and not lower. i8042prt does direct hardware accesses,
so, its lower filter will only see PnP and Power IRPs.

Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com