我可以使用C ++ mfc获取添加到浏览器(chrome或IE或firefox)的扩展列表 [英] Can I get the list of extensions that are added to browser(chrome or IE or firefox) using C++ mfc

查看:460
本文介绍了我可以使用C ++ mfc获取添加到浏览器(chrome或IE或firefox)的扩展列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何通过C ++ mfc获取添加到浏览器的扩展列表。如果可能的话,如何启用和禁用这些扩展。



我尝试过:



我试图在/ appdata / local /中找到与此扩展数据相关的数据库,但最后是空手。

How to get a list of the extensions added to browsers through C++ mfc. And if possible how to enable and disable those extensions.

What I have tried:

I tried to find some database related to this extension data in /appdata/local/ but ended up with empty hand.

推荐答案

您的里程可能会有所不同取决于浏览器版本(MS Edge vs IE等),因此最好根据需要对每个进行更多研究。

Internet Explorer

浏览器助手对象在

Your mileage may vary depending on the browser version (MS Edge vs IE etc.) so it would be best to do some more research on each one as needed.
Internet Explorer
The Browser Helper Objects are registered under
HKLM\Software\Microsoft\Windows\CurrentVersion\explorer\Browser Helper Objects



IE工具栏在

下注册


IE toolbars are registered under

HKLM\Software\Microsoft\Internet Explorer\Toolbar



Chrome

打包扩展程序的存储位置

导航到chrome:// version /并查找Profile Path,它是您的默认目录和Extensi ons Folder是存储所有扩展,应用程序和主题的地方

Windows

如果我的配置文件路径是%userprofile %\ AppData \本地\ Google + \\ Chrome \用户数据\默认然后我的存储目录是:


Chrome
Storage Location for Packed Extensions
Navigate to chrome://version/ and look for Profile Path, it is your default directory and Extensions Folder is where all the extensions, apps, themes are stored
Windows
If my Profile Path is %userprofile%\AppData\Local\Google\Chrome\User Data\Default then my storage directory is:

C:\Users\<Your_User_Name>\AppData\Local\Google\Chrome\User Data\Default\Extensions



Linux


Linux

~/.config/google-chrome/Default/Extensions/



MacOS


MacOS

~/Library/Application\ Support/Google/Chrome/Default/Extensions



Chromium


Chromium

~/.config/chromium/Default/Extensions



因此每个浏览器会有不同的文件结构,或者在Microsoft浏览器上可能是Registry键布局。

自定义代码...


Thus for each browser there will be a different file structure or on Microsoft browsers probably Registry key layout.
Custom code all the way...


这篇关于我可以使用C ++ mfc获取添加到浏览器(chrome或IE或firefox)的扩展列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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