以编程方式确定远程桌面协议版本? [英] Determine Remote Desktop Protocol version programmatically?

查看:60
本文介绍了以编程方式确定远程桌面协议版本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

远程桌面协议 6.1 版改变了 RDP 会话的处理方式(使会话 0,以前的意思是控制台会话",变成非交互式会话).我需要能够从我的程序中弄清楚如何确定当前 RDP 会话中正在使用的 RD 协议版本.然而,我在 Windows 终端服务 API 中找不到任何东西,似乎给了我协议版本.

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.

推荐答案

WTS_INFO_CLASS 中的 WTSClientBuildNumber 属性包含客户端内部版本号,它似乎是客户的 RDP.

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

WTS_INFO_CLASS 枚举类型包含的值指示要在调用 WTSQuerySessionInformation 函数时检索的会话信息类型.

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

这里是 msdn 终端服务 api 文章.

这篇关于以编程方式确定远程桌面协议版本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆