ActiveX和UAC [英] ActiveX and UAC

查看:83
本文介绍了ActiveX和UAC的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Vista下将ActiveX与UAC一起使用时遇到问题.

I'Have a problem to use my ActiveX with UAC under Vista.

几年前,我已经使用MFC开发了C ++中的ActiveX.

Few years ago I've developped an ActiveX in C++ with MFC.

此ActiveX在c:\ windows的寄存器和ini文件中读取和写入数据

This ActiveX read and write data in the register and in an ini file at c:\windows

我现在以C#形式使用此ActiveX.在XP下一切正常.

I use now this ActiveX in a C# form. Under XP  all is fine.

在Vista下,我将其注册为管理员,但是我的ActiveX从不读取或写入寄存器.

Under Vista I register it as administrator, but my ActiveX never read or write in the register.

除非我开始可以以管理员身份申请或禁用UAC(我不希望这样做).

Except if I start may application as administrator or disable UAC (I don't want this).

我试图在ActiveX的链接器选项中更改/MANIFESTUAC,但没有任何结果.

I've try to change /MANIFESTUAC in the linker options for my ActiveX without any result.


是否可以将我的主要c#应用程序设置为Invoker,而我的ActiveX可以使用寄存器?


Is it possible to have my main c# application asInvoker and my ActiveX could use the register?

我的ActiveX是否具有与主应用程序相同的权限?

Is my ActiveX with the same permission than my main application?

如何在启用了UAC的Vista下将寄存器与ActiveX一起使用?

How can I use the register with an ActiveX under Vista with UAC enable ?


能帮我吗?

谢谢.

Lionel

推荐答案

您好,

据我所知,您必须配置JavaScript代码
并编写代码以检查您的计算机上特定的ActiveX控件.

如果缺少Activex控件,Internet Explorer将以黄色消息框提示,要求用户安装该ActiveX.

选择安装"时,将出现一个UAC提示,并询问权限,请单击继续"安装该ActiveX,
许多ActiveX控件已发布在* .CAB文件中.

< 对象 ="您的 ActiveX" =” YourActiveX " ="CLSID :{FA0E941C-005B-4942-A097-8ECA285EB299}"
VIEWASTEXT 代码库 ="Yo urActiveX.cab" 多合一代码框架中查看我们的免费和公共"示例.
我们在那里有一些Activex样本,您可以查看这些样本.

我希望这些信息对您有帮助...

祝您有美好的一天...

最好的问候,
Fisnik

Hi,

As far as I know, is that you must config the the JavaScript code,
and write the code to check for that specific ActiveX control on your
machine.

If the Activex control, is missing, then Internet Explorer will prompt with
a yellow message bar, asking for user permission to install that ActiveX.

When, then choose to "install", then a UAC prompt will appear and
ask for permission, please just click Continue to install that ActiveX,
many ActiveX control are distrubuted in *.CAB files.

<OBJECT id="YourActiveX" name=”YourActiveX" classid="CLSID:{FA0E941C-005B-4942-A097-8ECA285EB299}"
VIEWASTEXT codebase="YourActiveX.cab">

You're welcome to check out our "free and public" samples at All-In-One Code Framework. 
We have some activex samples there, which you can check out.  

I hope this information was helpful...

Have a nice day...

Best regards,
Fisnik


这篇关于ActiveX和UAC的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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