Creating a fake input device driver

S

selmer

Hi to all

Does anyone know how I can create a fake device driver, so that I can
generate myself input data through an application and make the OS
believe that they come from an existing physical input device.

Actually, I don't really plan to generate the input data, but rather
receive them through a remote machine and feed them into the local
machine, like being generated in the latter.

To be more specific, I want to make a Game (for which I don't have any
info regarding its code) to see a mouse or a keyboard input that comes
from another machine. To achieve this, there are two possibiities.
Either I will fool the DirectInput (which the game uses) or I will fool
the game itself. But for both of them I don't see any other way than
building a driver for a non existing input device through which I can
pass my inputs. Am I right, or do I miss something?

Any information is acceptable (guidelines, sample code, links etc.)

Thanx in advance
 
D

Doron Holan [MS]

you can do this witha driver. download the WDK and then look at the kbfiltr
KMDF example. From there you will have to add support for all of the IOCTLs
instead of passing them down the stack. The WDK also contains documentation
on how to write a keyboard port driver that you should read

d
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top