如何获得Windows会话列表? [英] How to get a list of Windows sessions?

查看:355
本文介绍了如何获得Windows会话列表?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图找到一种方式来获得Windows会话列表?我需要同样的信息在用户选项卡上显示在任务管理器之一。我需要知道,如果用户是活跃与否,如果他/她在远程桌面会话登录。

I am trying to find a way to get a list of Windows sessions? I need the same information as the one displayed in the Task Manager on the User tab. I need to know if the user is active or not and if s/he is logged on in the Remote Desktop session.

这是如何做到这一点与C#任何想法/的Windows XP专业版?

Any idea on how to do that with C# / Windows XP Pro?

推荐答案

我相信你将需要使用p / Invoke来检索此信息。

I believe you'll need to use P/Invoke to retrieve this information.

相关的API在的这个MSDN页面

这篇关于如何获得Windows会话列表?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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