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