简体   繁体   English

主动X控件

[英]Active X control

Is it possible to Allow Active X to run automatically through code? 是否可以允许Active X通过代码自动运行? I want the Active X toolbar not to show and the Active x to run as soon as I run my application. 我希望Active X工具栏不显示,当我跑我的应用程序活动X尽快运行。 Any idea? 任何想法?

No. It would be a massive security hole if that was allowed, as it would allow a web-page to execute arbitrary code with the full privileges of the user. 否。如果允许的话,这将是一个巨大的安全漏洞,因为它将允许网页以用户的全部权限执行任意代码。

What you can do is configure Internet Explorer to automatically execute ActiveX controls for a given security zone. 您可以做的是将Internet Explorer配置为针对给定的安全区域自动执行ActiveX控件。 This would be suitable for, eg, an intranet environment where you have full control over the clients. 这将适用于例如您完全控制客户端的Intranet环境。

This can be automatically performed using Active Directory Group Policy, or manually at each client by launching IE and clicking Tools → Options → Security, and configuring the security policy for the relevant zone. 可以使用Active Directory组策略自动执行此操作,也可以在每个客户端上通过启动IE并单击“工具”→“选项”→“安全性”并为相关区域配置安全性策略来手动执行此操作。

BEWARE : You should not set the Internet zone to allow automatic downloading and execution of ActiveX controls. 注意 :不应将Internet区域设置为允许自动下载和执行ActiveX控件。 This would expose the client machine to a huge risk from malware. 这会使客户端计算机面临恶意软件带来的巨大风险。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM