Virtual Mouse for remote control

I creating a virtual mouse and keyboard for remote control. I started with vhidmini sample. I created the virtual devices and since I cant directly open them, I created a collection and sending request to mini driver control collection.

Now I should send a IOTCL_HID_WRITE_REPORT to virtual mouse to move the pointer? Or I should set the output report? If somebody can explain using a code sample, would be very good. Even a brief explanation on what IRP to send will be good.

You send the write report to your extra collection that is not the mouse or keyboard. Upon receiving the write report you then complete one of the ping pong read requests that hidclass sent you, filling in the data for the keyboard or mouse

d

-----Original Message-----
From: xxxxx@yahoo.com
Sent: Friday, December 11, 2009 8:02 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] Virtual Mouse for remote control

I creating a virtual mouse and keyboard for remote control. I started with vhidmini sample. I created the virtual devices and since I cant directly open them, I created a collection and sending request to mini driver control collection.

Now I should send a IOTCL_HID_WRITE_REPORT to virtual mouse to move the pointer? Or I should set the output report? If somebody can explain using a code sample, would be very good. Even a brief explanation on what IRP to send will be good.


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

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

I have been playing with a virtual multitouch device
(http://code.google.com/p/vmulti/) cobbled together from various samples
including vhidmini, I think it also has a mouse collection.

What I did was complete the hidclass read requests (store them in a
manual queue) with data sent up a vendor defined collection.

There is a basic test app to control it too.

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:bounce-392236-
xxxxx@lists.osr.com] On Behalf Of xxxxx@yahoo.com
Sent: Saturday, December 12, 2009 5:03 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] Virtual Mouse for remote control

I creating a virtual mouse and keyboard for remote control. I started
with vhidmini sample. I created the virtual devices and since I cant
directly open them, I created a collection and sending request to mini
driver control collection.

Now I should send a IOTCL_HID_WRITE_REPORT to virtual mouse to move
the
pointer? Or I should set the output report? If somebody can explain
using a code sample, would be very good. Even a brief explanation on
what IRP to send will be good.


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

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