Win32程序中批改浏览器主页

Win32程序中修改浏览器主页
请问如何在win32的程序中修改Firefox和Chrome浏览器的主页及相关其他设置??
求大侠指点!
firefox chrome 主页设置

------解决方案--------------------
我记得FireFox好像在sqlite的数据库里面,打开数据库文件修改就行了。
而google的需要使用它提供的Json::Reader源码库来解析配置文件修改。
------解决方案--------------------
对firefox举个bookmark的应用例子:
CString szSQL;
szSQL=_T("select id from moz_bookmarks where parent=3 and fk is null;");
SQLite::Table ResTable=m_dbFirefox.QuerySQL(szSQL);
CString szHeadline;
bool bHeadLine=false;
if (ResTable.GetRowCount())
{
bHeadLine=true;
szHeadline=ResTable.GetValue(0);
}

        //你的逻辑处理

         szSQL.Format(_T("delete from moz_bookmarks\
where parent!=%s and id>18 and parent!=3 and parent!=1 and title is not null;"), szComParentID);

        //执行你的SQL语句
m_dbFirefox.ExecuteSQL(szSQL);