RDPAddin - Client VirtualChannel dll not Starting while connecting RDP

Aug 22, 2013 at 3:54 PM
Edited Aug 22, 2013 at 3:58 PM
I have created a RDPClient.dll, with in that dll placed the virtual channel entry code. In the virtual channel entry function starting the "Calculator" application.

build the dll with AnyCpu configuration and placed the path of the dll in the TS Addins path of the registry (HKCU\Software\Microsoft\Terminal Server Client\Default\AddIns\TSClient).

While connecting to server using RDP, the dll is not getting executed and not getting any error also. The code written in the class was mentioned below.

CAN YOU PLEASE TELL ME, STEPS TO FOLLOW TO BUILD THE DLL AND IF ANY MISTAKES IN THE CODE.

YOUR HELP IS REALLY APPRECIATED.

[ExportDll("VirtualChannelEntry", CallingConvention.StdCall)]
    public static bool VirtualChannelEntry(IntPtr entry)
    {
        try
        {
            System.Diagnostics.Process.Start("calc");
            System.Windows.Forms.MessageBox.Show("In Try");

        }
        catch (Exception ex)
        {
            System.Windows.Forms.MessageBox.Show("In Catch");
        }
        finally
        {
            System.Windows.Forms.MessageBox.Show("In Finally");
        }
        return true;
    }
Nov 27, 2014 at 12:37 PM
I have the same problem. You have got to solve it?
Jan 30, 2015 at 8:05 AM
Hello,
Sry for my english,


the problem is compilation. x64 or x86