从 win32 中的其他会话中截取屏幕截图

发布于 2025-01-14 19:23:12 字数 83 浏览 1 评论 0原文

我想截取其他登录会话的屏幕截图。从运行可执行文件的会话中截取屏幕截图是可以的,但是我如何对其他会话执行此操作? 注意:我的可执行文件将以管理员身份执行。

I want to take screenshots from other logon sessions. Taking screenshot from the session that has ran the executable is okay but how can I do this with other sessions ?
Note: My executable is going to be executed as administrator.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

苦妄 2025-01-21 19:23:12

您无法跨会话边界访问 UI。您必须在目标会话中运行一个单独的进程,然后该进程可以在本地捕获屏幕截图,然后使用您选择的 IPC 机制(例如套接字或管道)将数据传输到主进程。

You can't access UIs from across session boundaries. You will have to run a separate process in the target session, and then that process can capture the screenshot locally and then use an IPC mechanism of your choosing, such as a socket or pipe, to transmit the data to your main process.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文