Hello.
I have following problem. I need to get preferences of current profile.
Here is the code I wrote:
nsCOMPtr<nsIPrefService> prefService =
do_GetService(NS_PREFSERVICE_CONTRACTID);
if(prefService)
{
nsCOMPtr<nsIPrefBranch> prefBranch;
rv = prefService->GetBranch("network.proxy.",
getter_AddRefs(prefBranch));
if(NS_SUCCEEDED(rv))
{
char* sStr;
rv = prefBranch->GetCharPref("http", &sStr);
}
else {...}
}
else {...}
This code get preferences from C:\program files\Netscape\defaults\pref\all.js
but these preferences are not of current profile.
What shall i do?
Preferences
- martind
- Posts: 432
- Joined: May 17th, 2003, 2:01 pm
- Location: Berlin, Germany
- Contact: