Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Use user32.lib under UMDF Driver

8 views
Skip to first unread message

joshuachuang

unread,
Nov 24, 2009, 4:59:02 AM11/24/09
to
Hi,

I am writting a UMDF Driver, which will use keybd_event to send key stroke.
But it failed.

Could I use this function this way?
How does UMDF driver send key stroke & mouse event?

Thanks!

Joshua

Maxim S. Shatskih

unread,
Nov 25, 2009, 2:38:12 PM11/25/09
to
To what user session? imagine Remote Desktop.

Drivers, including UMDF ones, are global per machine. User interfaces are not - there is Remote Desktop and Fast User Switching.

So, the correct solution is the helper applet, started by shell's Run registry key in each user interactive session, talking to your driver and sending the keyboard events to this session.

--
Maxim S. Shatskih
Windows DDK MVP
ma...@storagecraft.com
http://www.storagecraft.com

"joshuachuang" <jos...@pie.com.tw> wrote in message news:B42BCAE1-5608-4EED...@microsoft.com...

Doron Holan [MSFT]

unread,
Nov 25, 2009, 4:59:19 PM11/25/09
to
your UMDF driver is running in the wrong session (Session 0) to be able to
inject input into a user's desktop

d

--

This posting is provided "AS IS" with no warranties, and confers no rights.


"joshuachuang" <jos...@pie.com.tw> wrote in message
news:B42BCAE1-5608-4EED...@microsoft.com...

joshuachuang

unread,
Nov 25, 2009, 9:01:02 PM11/25/09
to
I see. The problem is my costumer does not want to see any extra
thread/process running in background, so I have to try to send keystroke &
mouse event in driver.

Can it be done by using KMDF driver?

If not, I just don't need to try more ...

Thanks sooooooo much.

"Doron Holan [MSFT]" wrote:

> .
>

joshuachuang

unread,
Nov 26, 2009, 4:22:02 AM11/26/09
to

Currently, I want to re-write kbdfilter and mousefilter sample code of DDK,
make them accept my UMDF driver request and insert keyboard/mouse event to
system.

Any suggestion?
Thanks!

Joshua

Maxim S. Shatskih

unread,
Nov 26, 2009, 2:08:42 PM11/26/09
to
>I see. The problem is my costumer does not want to see any extra
> thread/process running in background

Tell him/her this is impossible, without making major hacks and unfixable bugs (up to Explorer being dead after installing a fix from Windows Update).

> Can it be done by using KMDF driver?

No.

Doron Holan [MSFT]

unread,
Nov 30, 2009, 1:31:29 PM11/30/09
to
a new process in and of itself is not a bad thing, it is what that process
does is what can be bad. make this point to your customer, either you
a) introduce a kernel mode driver which reduces their potential stability
b/c now if you have a bug in the km driver, the machine crashes
or
b) introduce a new process which does not reduce system stability b/c if it
crashes, the worst thing that happens is that the app no longer works

d

--

This posting is provided "AS IS" with no warranties, and confers no rights.


"joshuachuang" <jos...@pie.com.tw> wrote in message

news:C5D84B25-66FA-4549...@microsoft.com...

0 new messages