Beispiel #1
0
 public override void UpdateSessionDisplaySettings(int width, int height)
 {
     RdpClient.UpdateSessionDisplaySettings(
         (uint)width, (uint)height,
         (uint)width, (uint)height,
         0, 1, 1);
 }
Beispiel #2
0
        public override void Connect()
        {
            RdpClient.AdvancedSettings2.SmartSizing = true;
            //_hostRdp.AxMsRdpClient.AdvancedSettings4.ConnectionBarShowMinimizeButton = false;
            // Keyboard redirection settings.
            // https://msdn.microsoft.com/en-us/library/aa381095(v=vs.85).aspx
            // https://msdn.microsoft.com/en-us/library/aa381299(v=vs.85).aspx
            RdpClient.SecuredSettings2.KeyboardHookMode     = 1;
            RdpClient.AdvancedSettings.allowBackgroundInput = 1;
            RdpClient.AdvancedSettings2.EnableWindowsKey    = 1;

            RdpClient.OnDisconnected += AxMsRdpClient_OnDisconnected;
            RdpClient.Connect();
        }
Beispiel #3
0
 public override void Disconnect()
 {
     RdpClient.OnDisconnected -= AxMsRdpClient_OnDisconnected;
     RdpClient.Disconnect();
 }