从Chrome扩展程序加载dll [英] Loading dll from Chrome extension

查看:1373
本文介绍了从Chrome扩展程序加载dll的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试开发与我的主程序通信的chrome和firefox的扩展。我开发了一个用于通信的本地库,在扩展中,我只需要加载dll并调用一个方法。

I am trying to develop extensions for chrome and firefox that will communicate with my main program. I have developed a native library for the communication and in the extensions I just need to load the dll and call a method.

对于Firefox我没有问题。我很容易地使用 ctypes.open(mydll.dll);

For Firefox I have no issue. I did it easily using ctypes.open("mydll.dll");

但对于Chrome来说,我知道,目前没有办法做到这一点。
,因为一方面,NPAPI正在逐步淘汰,另一方面,NaCI / ppapi在沙箱中运行。

But for Chrome, as far as I know, currently there is no way to do that. because in one hand NPAPI is being phased out and in the other hand NaCI/ppapi runs in a sandbox.

我错过了一些东西,真的不可能吗?

Am I missing something or it's really impossible?

提前感谢

推荐答案

Native Messaging是推荐的解决方案需要与应用程序通信的扩展。

Native Messaging is the recommended solution for an extension that needs to communicate with an application.

这篇关于从Chrome扩展程序加载dll的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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