0

我使用 Microsoft RDP COM API 编写了一个 Windows 桌面共享应用程序。

activeSession = new RDPSession();

/* I can only have 1 attendee per-session */
activeSession.Invitations.CreateInvitation(authstr, groupname, password, 1);

但是每次生成会话邀请时,我都需要在给定端口(由于防火墙策略)启动 RDP 会话,而不是随机的。

有谁知道使用该 API 的方法?任何帮助表示赞赏。

4

1 回答 1

0

我找到了一种挖掘一点MSDN 文档的方法。

activeSession.Properties["PortId"] = listeningPort;
activeSession.Open();
于 2018-11-19T14:40:25.477 回答