我如何发送键盘&鼠标输入到Windows登录屏幕? [英] How do I send keyboard & mouse input to the Windows logon screen?

查看:242
本文介绍了我如何发送键盘&鼠标输入到Windows登录屏幕?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个需要在Windows登录屏幕上模拟输入的Windows服务。基本上移动鼠标并转发击键。该服务将以完全权限运行,因此不是问题。我查看了SendInput,但它只适用于当前会话。我知道有各种类型的工具允许这样的功能,例如远程协助工具是一个允许IT支持人员查看登录屏幕并提供输入的示例,所以它绝对可行,但是如何?

I'm working on a windows service that needs to simulate input at the windows logon screen. Basically move mouse and also forward keystrokes. The service will be running with full privileges so that's not an issue. I've looked into SendInput, but it only works for the current session. I know there are various types of tools that allow such functionality e.g. remote assistance tools are one example that allow IT support to view the logon screen and provide input as well, so it's definitely do-able, but how?

推荐答案

SysInternals PSExec -x 命令行切换以在登录屏幕上运行程序。

SysInternals PSExec has the -x command line switch to run programs on the logon screen.

有一个名为 PAExec 。我想你会在那里找到一些有用的API调用。对我来说,似乎代码应该在 InteractiveSession.cpp

There is an open source version called PAExec. I guess you'll find some helpful API calls in there. To me it seems the code should be in InteractiveSession.cpp

这篇关于我如何发送键盘&鼠标输入到Windows登录屏幕?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆