How do I send keyboard and mouse input to the Windows logon screen?

I am working on a windows service that is supposed to simulate a login on the windows login screen. Basically move the mouse as well as the forward keys. The service will run with full privileges so this is not a problem. I looked at SendInput but it only works for the current session. I know that there are different types of tools that allow this kind of functionality, eg. Remote Assistance Tools is one example that allows an IT professional to view a login screen and provide input, so it definitely works, but how?

+3


source to share


1 answer


SysInternals PSExec has a command line switch -x

for running programs on the login screen.



There is an open source version called PAExec . I think you will find some useful API calls there. It seems to me that the code should be in InteractiveSession.cpp

+1


source







All Articles