IMsRdpClipboard mstscax.dll always return null

Maogang MG2 Chen 1 Reputation point

I use MsRdpClient9NotSafeForScripting in my winforms app.

Bellow is my code.
//code begin
private AxMSTSCLib.AxMsRdpClient9NotSafeForScripting rdp;
IMsRdpClientNonScriptable7 msRdpClientNonScriptable7 = (IMsRdpClientNonScriptable7)rdp.GetOcx();
object value = true;
extendedSettings.set_Property("ManualClipboardSyncEnabled", ref value);
IMsRdpClipboard clipboard = msRdpClientNonScriptable7.Clipboard;
if(clipboard != null)
// code end

The cliipboard is always null.

And I find no class implements IMsRdpClientNonScriptable7, then how to use this interface?

Remote Desktop
Remote Desktop
A Microsoft app that connects remotely to computers and to virtual apps and desktops.
4,381 questions
{count} votes