/// <summary> /// Starts remote control of the session. /// </summary> /// <param name="hotkey">The key to press to stop remote control of the session.</param> /// <param name="hotkeyModifiers">The modifiers for the key to press to stop remote control.</param> public void StartRemoteControl(ConsoleKey hotkey, RemoteControlHotkeyModifiers hotkeyModifiers) { if (IsVistaSp1OrHigher) { NativeMethodsHelper.StartRemoteControl(this._server.Handle, this._sessionId, hotkey, hotkeyModifiers); } else { NativeMethodsHelper.LegacyStartRemoteControl(this._server.Handle, this._sessionId, hotkey, hotkeyModifiers); } }