locked
WTSVirtualChannelOpenEx sometimes failed RRS feed

  • Question

  • I have a rdp plugin used in my C# AxMSTSCLib.AxMsRdpClient7NotSafeForScripting rdp client:

    rdp.AdvancedSettings8.PluginDlls = "{7d413ce8-a0a1-42d9-a67b-6d4be4af17c5}";

    When I open the channel on server side:

                channelHandle = Win32API.WTSVirtualChannelOpenEx(Win32API.WTS_CURRENT_SESSION,
                    Marshal.StringToHGlobalAnsi(APP_CHANNEL_NAME),
                    Win32API.WTS_CHANNEL_OPTION_DYNAMIC | 4);
    Sometimes ok, sometimes failed with error code = 0x31, no more error description. Is there any problem with my code?

     
    • Moved by Dave PatrickMVP Wednesday, November 4, 2020 2:14 PM looking for forum
    Wednesday, November 4, 2020 2:08 PM

Answers