I'm using rdp files from "TS remote App manager" to launch remote apps without the anoying remote desktop. Now I found "Terminal Services API" and I'm able to launch remote applicatioms using the code below. Where can I set "remoteapplicationmode = 1" so my remote TS App runs without showing remote desktop?
I tried using MsRdpClientShell.RdpFileContents = <rdp file contents> but in that case I'm unable to set and use virtual channels.
Regards,
Manuel Alves
public Form1()
{
m_msTsc = newAxMsRdpClient6();
m_msTsc.OnConnected += newEventHandler(m_msTsc_OnConnected);
m_msTsc.OnDisconnected += newIMsTscAxEvents_OnDisconnectedEventHandler(m_msTsc_OnDisconnected);
m_msTsc.OnChannelReceivedData += newIMsTscAxEvents_OnChannelReceivedDataEventHandler(m_msTsc_OnDataReceived);
m_msTsc.Dock = DockStyle.Fill;
Controls.Add(m_msTsc);
InitializeComponent();
}
...
m_msTsc.Server = "myServer";
m_msTsc.UserName = "myUser";
m_msTsc.SecuredSettings2.StartProgram = "c:\\VirtualChannels\\VirtualChannelsServerApp.exe";
m_msTsc.SecuredSettings2.AudioRedirectionMode = 2;
m_msTsc.AdvancedSettings7.MaximizeShell = 0;
m_msTsc.AdvancedSettings7.SmartSizing = true;
m_msTsc.AdvancedSettings7.PublicMode = false;
m_msTsc.AdvancedSettings7.AuthenticationLevel = 0;
m_msTsc.AdvancedSettings7.ClearTextPassword = "myPassword";
m_msTsc.AdvancedSettings7.DisableRdpdr = 0;
m_msTsc.CreateVirtualChannels("CH001,CH002");
m_msTsc.Connect();
// Where can I set "remoteapplicationmode = 1"
// so my remote TS App runs without showing remote desktop?