我可以使用远程桌面服务将数据发送到 RemoteApp 吗?

发布于 2025-01-01 10:24:10 字数 443 浏览 3 评论 0原文

当我通过远程桌面 Web 访问启动 RemoteApp 时,是否可以将数据发送到远程应用程序?

所需场景

用户使用其凭据登录网站。它们还提供人口统计信息,例如名字、姓氏、地址等。

网站通过 SSO 连接到 RemoteApp,并向 RemoteApp 提供人口统计信息。

例如,如果 RemoteApp 是 Windows 窗体应用程序,我可以获取此信息并将其显示在消息框中吗?

Edit1:TomTom 在 这个问题提到使用命名管道发送数据。这适用于这个问题吗?

When I launch a RemoteApp via Remote Desktop Web Access, is there a way to send data to the remote app?

Desired senario:

A user logs into a website with their credentials. They also provide demographic information such as first name, last name, address, etc.

The website connects to the RemoteApp via SSO and makes the demographic information available to the RemoteApp.

For example, if the RemoteApp is a Windows Forms app, can I get this information and display it in a message box?

Edit1: TomTom's response in this question mentions using named pipes to send data. Is that applicable to this problem?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

空心↖ 2025-01-08 10:24:10

事实证明,您可以使用 Remoteapplicationcmdline 属性将命令行参数传递给 RemoteApp,如下所示:(

remoteapplicationcmdline:s:/Parameter1: 5234 /Parameter2: true

名称“/Parameter1”和“/Parameter2”只是示例。您的远程应用程序必须根据需要定义和处理这些参数。

)设置是 MsRdpClientShell 对象。

以下是其他 RdpFileContents 属性的资源。

您的代码最终可能看起来像这样:

MsRdpClientShell.PublicMode = true;
MsRdpClientShell.RdpFileContents = 'redirectclipboard:i:1 redirectposdevices:i:0 remoteapplicationcmdline:s:/Parameter1: 5234 /Parameter2: true [Other properties here...]';
MsRdpClientShell.Launch();

对于大量信息,我们可能会将初步数据发送到 Web 服务,检索回标识符,通过命令行将此标识符传递给 RemoteApp,然后让 RemoteApp 查询 Web 服务获取所有信息。

It turns out you can pass command line parameters to the RemoteApp using the remoteapplicationcmdline property like such:

remoteapplicationcmdline:s:/Parameter1: 5234 /Parameter2: true

(The names "/Parameter1" and "/Parameter2" are just examples. Your remote app will have to define and handle these as appropriate.)

This setting is part of the RdpFileContents property of the MsRdpClientShell object.

Here is a resource for other RdpFileContents properties.

Your code might end up looking something like this:

MsRdpClientShell.PublicMode = true;
MsRdpClientShell.RdpFileContents = 'redirectclipboard:i:1 redirectposdevices:i:0 remoteapplicationcmdline:s:/Parameter1: 5234 /Parameter2: true [Other properties here...]';
MsRdpClientShell.Launch();

For larger amounts of information, we might send preliminary data to a web service, retrieve an identifier back, pass this identifier to the RemoteApp via the command line, then have the RemoteApp query the web service to get all the information.

水溶 2025-01-08 10:24:10

当然,为了使参数有用,程序必须寻找它们。如果是敏感数据,设置数据库进行查询会存在一些安全问题。

如果程序 (RemoteApp) 正在查找 CSV 或表格或其他形式的数据,那么您可能能够发送大量数据进行处理。这仅取决于程序将使用什么参数(和形式)。

Of course, for the parameters to be of use the program must be looking for them. Setting up a database to query has a little security issue if it is sensitive data.

If the program (RemoteApp) is looking for data in the form of a CSV or table or something, then you might be able to send a lot of data to be processed. It just depends upon what parameters (and form) the program is going to use.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文