Click here to Skip to main content
15,910,872 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Hi,

How can I retreive the rdp number of allowed connections remotely (through code)?
I searched the web but couldn't find any solution. I tried searching for some regitry key , which might hold the max number of connections allowed - but Terminal Server doesn't have such key...
Any Ideas?

Thanks, Tomer
Posted
Comments
Sandeep Mewara 26-Feb-11 10:57am    
Which language? Tag it correctly.

1 solution

You could try using WMI. There is a good series of articles on using it here on CP. Just use the Articles|Search menu at the top of the page and search for 'Everything in wmi'.

In particular the Win32_TSNetworkAdapterSetting[^] Class has the PolicySourceMaximumConnections member.
 
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