Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista Drivers > Use user32.lib under UMDF Driver

Reply
Thread Tools Display Modes

Use user32.lib under UMDF Driver

 
 
joshuachuang
Guest
Posts: n/a

 
      11-24-2009
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
 
Reply With Quote
 
 
 
 
Maxim S. Shatskih
Guest
Posts: n/a

 
      11-25-2009
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

http://www.storagecraft.com

"joshuachuang" <> wrote in message news:B42BCAE1-5608-4EED-9DA4-...
> 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

 
Reply With Quote
 
Doron Holan [MSFT]
Guest
Posts: n/a

 
      11-25-2009
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" <> wrote in message
news:B42BCAE1-5608-4EED-9DA4-...
> 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


 
Reply With Quote
 
joshuachuang
Guest
Posts: n/a

 
      11-26-2009
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:

> 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" <> wrote in message
> news:B42BCAE1-5608-4EED-9DA4-...
> > 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

>
> .
>

 
Reply With Quote
 
joshuachuang
Guest
Posts: n/a

 
      11-26-2009

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

"joshuachuang" wrote:

> 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:
>
> > 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" <> wrote in message
> > news:B42BCAE1-5608-4EED-9DA4-...
> > > 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

> >
> > .
> >

 
Reply With Quote
 
Maxim S. Shatskih
Guest
Posts: n/a

 
      11-26-2009
>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.

--
Maxim S. Shatskih
Windows DDK MVP

http://www.storagecraft.com

 
Reply With Quote
 
Doron Holan [MSFT]
Guest
Posts: n/a

 
      11-30-2009
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" <> wrote in message
news:C5D84B25-66FA-4549-A7D2-...
> 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:
>
>> 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" <> wrote in message
>> news:B42BCAE1-5608-4EED-9DA4-...
>> > 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

>>
>> .
>>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
UMDF filter driver for raw PDO gti4ever Windows Vista Drivers 9 11-20-2009 06:52 PM
Game Compatibility BCurrey Windows Vista Games 6 11-29-2007 09:11 PM
cannot install Vista ACPI error Salsakidd Windows Vista Installation 6 10-10-2007 11:12 AM
Unknown Driver problem with WMDC - can't connect Cingular 3125 Rob Ellison ActiveSync 1 03-05-2007 09:12 PM
Vista auto-reboot after install OrangeGuy Windows Vista Installation 4 02-07-2007 03:05 AM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59