在 Internet Explorer 中嵌入或重新设置 Windows 应用程序的父级

发布于 2024-09-16 11:38:56 字数 532 浏览 2 评论 0原文

是否可以将 host/embed/reparent 普通 Windows 应用程序 插入加载到我们 Intranet 上的 Internet Explorer 中的网页?

我想做一些事情,比如让用户在我们的 Intranet 站点上按下按钮,然后启动 Windows 应用程序,并且看起来就像在我们的应用程序内部一样,就好像它是“框架”的一样。我相信可以使用重新父级其他应用程序的Windows应用程序来做到这一点。

我很乐意提升权限、使用受信任的站点、使其成为 HTA 和/或在必要时更改客户端计算机上的注册表,因为我们可以完全控制 Intranet 上的计算机。这也只需要在 Internet Explorer 上运行。

Is it possible to host/embed/reparent a normal Windows Application into a web page loaded into Internet Explorer on our Intranet?

I'd like to do something like have the user press a button on our intranet site, and have the Windows application start and look like it's inside our application, as if it was "framed". I believe it's possible to do this with Windows applications that reparent other applications.

I'm happy to elevate permissions, use trusted sites, make it a HTA, and/or change the registry on the client machine if necessary as we have full control over the machines on our Intranet. This also only needs to work on Internet Explorer.

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

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

发布评论

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

评论(3

挽心 2024-09-23 11:38:56

要使用 ActiveX,您需要修改应用程序以呈现到不同的窗口句柄。您的目标应用程序是用什么语言编写的?

您需要更改您的应用程序,使其可以使用某些参数来调用,或者作为带有窗口句柄(来自 Internet Explorer 的句柄)作为参数的 DLL 来调用。您的应用程序不需要创建自己的窗口,而是需要使用 ie 的窗口句柄进行渲染。然后,您需要实现一个简单的 ActiveX 对象,该对象除了使用正确的参数实例化您的应用程序之外什么也不做。

To use ActiveX you need to modify the application to render to a different window handle. What language is your target application written in?

You need to change your application that it can be called with some parameters or as a dll with a window handle (one from internet explorer) as parameter. Your application instead of creating it's own window need to use the window handle from ie to render. Then you need to implement a simple ActiveX object that does nothing than to instanciate your application with the proper arguments.

策马西风 2024-09-23 11:38:56

听起来您想编写一个 ActiveX 控件。

Sounds like you want to write an ActiveX control.

煞人兵器 2024-09-23 11:38:56

我听说过将 winform 嵌入到 wpf 中,尽管我从未这样做过, 此代码项目文章声称。

I've heard of embedding winforms into wpf, though I've never done it, this code project article claims to.

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