mirror of
https://github.com/mRemoteNG/mRemoteNG.git
synced 2026-02-17 22:11:48 +08:00
Merge pull request #2376 from BlueBlock/add_rdp_protocol_rdc11
add rdp protocol rdc11
This commit is contained in:
26
mRemoteNG/Connection/Protocol/RDP/RdpProtocol11.cs
Normal file
26
mRemoteNG/Connection/Protocol/RDP/RdpProtocol11.cs
Normal file
@@ -0,0 +1,26 @@
|
||||
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);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user