Click here to Skip to main content
13,085,613 members (101,407 online)
Rate this:
Please Sign up or sign in to vote.
See more:
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,

Posted 15-Nov-12 6:02am
Updated 15-Nov-12 9:06am
DinoRondelly 15-Nov-12 14:20pm
2 hours 18 views and no responses is there something wrong with the question?
Is this impossible to do?
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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.
DinoRondelly 15-Nov-12 17:10pm
Your right Dave I understand that and apologize for my comment on the question.

I am at my wits end with this, so once again i apologize.
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

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 you can download and modify the source code.


This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web04 | 2.8.170813.1 | Last Updated 16 Nov 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100