add rdp rdc11

This commit is contained in:
BlueBlock
2023-03-15 08:04:01 -04:00
parent 16f67d58d1
commit 5ec4f4dcea
3 changed files with 30 additions and 1 deletions

View 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);
}
}
}

View 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);
}

View File

@@ -7,6 +7,7 @@
Rdc8,
Rdc9,
Rdc10,
Rdc11,
Highest = 1000
}
}
}