使用AxInterop.MSTSCLib启用无缝模式

时间:2014-02-06 11:13:25

标签: activex remote-access remote-desktop

我有一个应用程序使用AxInterop.MSTSCLib activeX创建与另一台PC的远程连接,类似于以下应用程序:

http://www.codeproject.com/Articles/43705/Remote-Desktop-using-C-NET

我的问题是,我可以选择配置以无缝模式连接PC吗?

1 个答案:

答案 0 :(得分:1)

我知道这已经超过一年了,但我假设这是你想做的事情:

        rdp.Server = "Server";
        rdp.UserName = "Username";
        rdp.Domain = "Domain";
        IMsTscNonScriptable secured = (IMsTscNonScriptable)rdp.GetOcx();
        secured.ClearTextPassword = User.Password;

        rdp.AdvancedSettings8.ConnectionBarShowMinimizeButton = false;
        rdp.AdvancedSettings8.ConnectionBarShowPinButton = false;
        rdp.AdvancedSettings8.ConnectionBarShowRestoreButton = false;
        rdp.AdvancedSettings8.EnableWindowsKey = 0;
        rdp.AdvancedSettings8.RedirectClipboard = true;
        rdp.AdvancedSettings8.RedirectDrives = true;
        rdp.AdvancedSettings8.RedirectPrinters = true;
        rdp.AdvancedSettings8.SmartSizing = true;
        rdp.SecuredSettings3.StartProgram = "LaunchApp Path";
        rdp.Connect();

另外,请按照上面提到的@Hans Passant的建议。