Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
XP
accessibility
basics
beta.general
beta.help-and-support
configuration_manage
customize
device_driver.dev
embedded
embedded.techpreview
games
general
hardware
help_and_support
messenger
moviemaker
music
network_web
newusers
perform_maintain
photos
print_fax
security_admin
setup_deployment
video
winlogo
wmi
work_remotely
  
 
date: Wed, 21 Feb 2007 10:28:08 -0600,    group: microsoft.public.windowsxp.device_driver.dev        back       


Creating a fake input device driver   
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



--
selmer
------------------------------------------------------------------------
Posted via http://www.codecomments.com
------------------------------------------------------------------------
date: Wed, 21 Feb 2007 10:28:08 -0600   author:   selmer

Re: Creating a fake input device driver   
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

-- 
Please do not send e-mail directly to this alias. this alias is for 
newsgroup purposes only.
This posting is provided "AS IS" with no warranties, and confers no rights.


"selmer"  wrote in message 
news:selmer.2mdsxw@mail.codecomments.com...
>
> 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
>
>
>
> --
> selmer
> ------------------------------------------------------------------------
> Posted via http://www.codecomments.com
> ------------------------------------------------------------------------
>
date: Wed, 21 Feb 2007 22:08:04 -0800   author:   Doron Holan [MS]

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us