Determine Remote Desktop Protocol version programmatically?

匆匆过客 提交于 2020-01-04 05:09:12

问题


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.


回答1:


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.



来源:https://stackoverflow.com/questions/1930462/determine-remote-desktop-protocol-version-programmatically

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!