简体   繁体   English

使用C#将活动窗口捕获为jpg?

[英]Capture the active window to jpg using C#?

I am creating a Windows Application that capture the all users session details. 我正在创建一个捕获所有用户会话详细信息的Windows应用程序。

I want to track that how many users are connected with my machine using RDP session. 我想跟踪使用RDP会话与我的计算机连接的用户数。 Want to log all their activity with screen shot. 想要用屏幕截图记录他们的所有活动。

So I would like to know how can I capture the active screen. 因此,我想知道如何捕获活动屏幕。 I tried 'RUNAS' but its show me current screen shot where I run. 我尝试了“ RUNAS”,但它向我显示了当前运行的屏幕截图。 I am able to use user's application data but not get Actual screen. 我能够使用用户的应用程序数据,但无法获得“实际”屏幕。

I also tried LogonUser, CreateProcessAsUser but not getting actual point. 我也尝试了LogonUser,CreateProcessAsUser,但没有得到实际的提示。 So please let me know how can I do it ? 所以,请让我知道我该怎么做?

I used 'cassia' google library to list all the current logged user. 我使用“决明子” google库来列出所有当前登录的用户。

Thanks Laxmilal 感谢Laxmilal

当他们登录到计算机中时,使应用程序在用户会话中启动,然后监视用户会话已经很容易了。同步正在运行的应用程序的多个实例(每个登录用户一个)固有的问题。那么解决起来就容易得多了,这将使应用程序打入Windows用户会话并同时在几个不同的会话中运行代码(然后无论如何都进行同步)中涉及的问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM