Windows服务中ActiveX组件的Internet Explorer安全限制 [英] Internet Explorer security restrictions on ActiveX components in a Windows service

查看:120
本文介绍了Windows服务中ActiveX组件的Internet Explorer安全限制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Windows服务中的简单ATL ActiveX组件。我可以创建一个这个组件的实例,并在我编写的一个小型MFC测试应用程序中使用它的方法。但是,我无法在IE 11中的Javascript
代码中创建组件的实例。如果我将ATL ActiveX组件放在不是Windows服务的ActiveX服务器(DLL或EXE)中,我的Javascript代码可以在IE 11中创建一个实例。顺便说一句,我使用IObjectSafetyImpl将我的ActiveX组件标记为脚本安全。
IE中是否有安全设置允许它创建Windows服务中的ActiveX组件?或者我需要添加一些代码到ActiveX组件?谢谢!

I have a simple ATL ActiveX component that is in a Windows service. I can create an instance of this component and use its methods in a little MFC test application that I wrote. However, I cannot create an instance of the component in my Javascript code in IE 11. If I put the ATL ActiveX component in an ActiveX server (a DLL or an EXE) that is not a Windows service, my Javascript code can create an instance in IE 11. By the way, I used IObjectSafetyImpl to mark my ActiveX component as safe for scripting. Is there a security setting in IE that will allow it to create an ActiveX component that is in a Windows service? Or is there some code I need to add to my ActiveX component? Thanks!

推荐答案

假设IE11作为低完整性进程标准运行,COM安全性限制了它绑定到正在运行的COM服务器的能力,在您的情况下一个Windows服务..

Assuming that IE11 is running as a low-integrity process standard COM security limits it's ability to bind to a running COM Server, in your case a windows service..

参见
CoCreateInstance和Integrity Levels





这篇关于Windows服务中ActiveX组件的Internet Explorer安全限制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆