Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Determine Remote Desktop Protocol version programmatically?

Remote Desktop Protocol version 6.1 changed the way RDP sessions are handled (making session 0, which previously meant "console session", into a non-interactive session). I need to be able to figure out from within my program how to determine just what version of the RD protocol is being used on the current RDP session. Nothing I can find in the Windows Terminal Services API, however, seems to give me the protocol version.

like image 644
Tanner Lovelace Avatar asked Jun 13 '26 10:06

Tanner Lovelace


1 Answers

the WTSClientBuildNumber attribute in the WTS_INFO_CLASS contains the client build number which appears to be the version of the client's RDP.

The WTS_INFO_CLASS enumeration type contains values that indicate the type of session information to retrieve in a call to the WTSQuerySessionInformation function.

here is the msdn terminal services api article.

like image 65
Dostee Avatar answered Jun 15 '26 02:06

Dostee



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!