Skip to content
代码片段 群组 项目
未验证 提交 7a2f934f 编辑于 作者: Dimitrij's avatar Dimitrij 提交者: GitHub
浏览文件

Merge pull request #2376 from BlueBlock/add_rdp_protocol_rdc11

add rdp protocol rdc11
No related branches found
No related tags found
无相关合并请求
using System.Runtime.Versioning;
using System.Windows.Forms;
using AxMSTSCLib;
using MSTSCLib;
namespace mRemoteNG.Connection.Protocol.RDP
{
[SupportedOSPlatform("windows")]
public class RdpProtocol11 : RdpProtocol10
{
private MsRdpClient11NotSafeForScripting RdpClient11 => (MsRdpClient11NotSafeForScripting)((AxHost)Control).GetOcx();
protected override RdpVersion RdpProtocolVersion => RdpVersion.Rdc11;
protected override AxHost CreateActiveXRdpClientControl()
{
return new AxMsRdpClient11NotSafeForScripting();
}
protected override void UpdateSessionDisplaySettings(uint width, uint height)
{
RdpClient11.UpdateSessionDisplaySettings(width, height, width, height, 0, 1, 1);
}
}
}
\ No newline at end of file
......@@ -24,6 +24,8 @@ namespace mRemoteNG.Connection.Protocol.RDP
return new RdpProtocol9();
case RdpVersion.Rdc10:
return new RdpProtocol10();
case RdpVersion.Rdc11:
return new RdpProtocol11();
default:
throw new ArgumentOutOfRangeException(nameof(rdpVersion), rdpVersion, null);
}
......
......@@ -7,6 +7,7 @@
Rdc8,
Rdc9,
Rdc10,
Rdc11,
Highest = 1000
}
}
\ No newline at end of file
}
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册