是否可以从 Firefox/Internet Explorer 工具栏扩展访问 Win API?

发布于 2024-10-07 07:26:50 字数 212 浏览 0 评论 0 原文

我们有一个想法,为 Windows 上的主要浏览器开发一个工具栏。

该工具栏将是对我们的天气应用程序的补充。 我们希望工具栏能够访问 Windows API,特别是我们需要注册表和文件系统访问权限(想要访问主应用程序用户设置)。 Firefox 和 Internet Explorer 工具栏扩展可以吗?

浏览器工具栏开发对我来说是新领域。 我只是想知道启动这个项目是否有意义。

We have an idea to develop a toolbar for major browsers on Windows.

The toolbar will be a compliment for our weather application.
We want the toolbar to have an access to Windows API, specifically we need Registry and file system access (want access main app user settings).
Is it possible with Firefox and Internet Explorer toolbar extentions?

Browser toolbar development is new grounds for me.
I just want to know if it makes sense to start the project.

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

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

发布评论

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

评论(2

热血少△年 2024-10-14 07:26:50

您可以使用已向您公开的现有 XPCom 界面从 Firefox 访问注册表和文件系统。

Internet Explorer 插件都是本机的,因此您已经在编写 Win32 和 COM,因此您只需调用所需的任何 API 即可。但是,由于您很可能在低完整性进程中运行,因此您需要阅读 this 将解释您将遇到的注册表和文件系统访问限制。如果您准确描述您感兴趣的注册表和文件系统位置,我可以给您更详细的答案。

You can access the registry and filesystem from Firefox using the existing XPCom interfaces that are already exposed for you.

Internet Explorer plug-ins are all native, so you're already writing Win32 and COM, so you just call whatever API you need. However, since you are most likely running in a low integrity process, you need to read this which will explain the limitations on registry and filesystem access that you will encounter. If you describe exactly what registry and filesystem locations you're interested in, I can give you a more detailed answer.

笑咖 2024-10-14 07:26:50

可以通过 Firefox 扩展访问文件系统:
从 Firefox 扩展访问文件系统

我不了解 Internet Explorer,但是这似乎是有道理的。

至于 Firefox 中的注册表访问,请参阅:
https://developer.mozilla.org/en/accessing_the_windows_registry_using_xpcom

听起来应该都是这样可能的。我没有找到有关 Internet Explorer 的任何内容,但似乎这将是他们将包含的功能。我不喜欢弄乱注册表,因为它不是跨平台的,但如果您确实需要用户设置,那么我想您有一个合理的理由。请记住,并非所有用户都会使用 Windows,并且 Mac OS 没有注册表(Linux 也没有),因此如果可以避免的话,请尽量不要限制自己太多。

The filesystem can be accessed from a Firefox extension:
File System access from Firefox Extension

I don't know about Internet Explorer, but that seems like it would make sense.

As for Registry access in Firefox, see this:
https://developer.mozilla.org/en/accessing_the_windows_registry_using_xpcom

It sounds like it should all be possible. I didn't find anything about Internet Explorer, but it seems like that would be a feature that they would include. I don't like to mess with the registry since that is not cross-platform, but if you really need the user settings, then I guess you have a valid reason. Just remember that not all of your users will be using Windows, and Mac OS doesn't have a registry (neither does Linux), so try not to restrict yourself too much if you can avoid it.

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