Click here to Skip to main content
15,895,084 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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,

Thanks
Posted
Updated 15-Nov-12 9:06am
v2
Comments
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?

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.
 
Share this answer
 
Comments
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.
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]
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900