从远程桌面服务管理器获取信息 [英] Get Information from remote desktop service manager HELP

查看:79
本文介绍了从远程桌面服务管理器获取信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图获取进入Windows服务器的用户的传入和传出字节和帧以及空闲时间和登录时间.

我已经能够获得用户及其IP地址的列表,但是我没有运气获得我需要的任何其他信息.

我希望程序的这一部分模仿当您右键单击用户并选择状态时远程桌面服务管理器的功能.

我使用WTSQuerySessionInformation来获取UserName,IPAddress,屏幕分辨率和颜色深度,但是没有运气获得我需要的任何其他信息.

我到处都张贴了这个问题,还没有运气得到答案.

我发现很难相信,在过去,没有其他人可以通过Windows不容易访问的信息来构建类似的东西.

我不需要持续监视使用情况,我只想从程序启动时快照即可.

在我的情况下,数据包嗅探器将无法正常工作,因为它只会自应用程序启动以来对数据包进行计数,而不会从会话开始的地方开始计数.

任何信息都将非常有帮助,我已经坚持了好几天,需要尽快完成该项目.

如果我格式化此问题的方式有问题,或者无法解决此问题,请发表评论并让我知道,

感谢

I am trying to get in the incoming and outgoing bytes and frames as well as idle time and log on time for users who are logged on to a windows server.

I have been able to get a list of users and their ip address but i am having no luck getting any of the other information i require.

I want this part of my program to mimic what the remote desktop service manager does when you right click on a user and select status.

I used WTSQuerySessionInformation to get UserName,IPAddress,Screen resolution and Color depth but am having no luck getting any of the other information I need.

I have posted this question all over and havent had really any luck getting an answer.

I find it hard to believe that no one else has had to build anything like this in the past of that its not easily accessible information from windows.

I dont need to continuously monitor the usage i just want a snap shot from when my program started.

A packet sniffer isnt going to work in my case because it will only count the packets since my application started and not from where the session started.

Any information would be extremely helpful, i have been stuck on this for days now and need to wrap up this project ASAP.

If there is something wrong with the way I formatted this question or if this isnt possible please comment and let me know,

Thanks

推荐答案

第一件事是当您不支付支持费用时,必须耐心等待.我们都自愿在这里度过时光,并有正常的工作要做.

直到今天晚些时候我才回来,因为我整天都在敲我的代码.


另外,可能只有极少数的人在做您要尝试的事情,而没有终端服务器围坐在那里来测试代码.因此,答案将需要更长的时间才能返回.
First thing is when you''re not paying for support you have to be patient. We all volunteer our time here and have our normal jobs to do.

I haven''t got back to you until late today because I''ve been banging out MY code all day.


Also, there''s probably a very small percentage of people doing what you''re attempting and don''t have a Terminal Server sitting around to test code against. So, answers will take longer to come back.


我已经解决了这个问题,

我用决明子来做,决明子源代码的问题是默认情况下未声明传入/传出字节的属性. (连同传入的传出帧)

我将它们添加到源代码中,并更新了界面,我能够获取这些值.

决明子一直都是解决方案,

感谢Dave Kreskowiak的所有帮助和耐心,再次对我在上面的评论表示歉意.

任何需要再次执行此操作的人都需要查找cassia.net,您可以下载并修改源代码.

[CassiaDownload ]
I have solved this,

I used cassia to do it, the problem with the cassia source code is the properties for incoming\outgoing bytes weren''t declared by default. ( Along with the incoming outgoing frames)

I added these to the source code and updated the interface and I was able to get these values.

Cassia was the solution for this all along,

Thanks Dave Kreskowiak for all your help and patience and once again I apologize for my comment above.

Any one who needs to do this again needs to look up cassia.net you can download and modify the source code.

[CassiaDownload]


这篇关于从远程桌面服务管理器获取信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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