Lets say you are developing another application (not mozilla or netscape),
and you want to save your user the hassle of entering proxy settings because
you know they have already set them in their browser.  So, you want to
obtain the proxy settings of the browser, and use those in your application.

To obtain the proxy settings, requires locating the current profile's
prefs.js file.  As far as I can tell, the only way to locate this file is by
parsing the registry.dat file to obtain its directory location, which is
problematic for a number of reasons.

Ideally, what I would like is a simple call that says
GetCurrentProfileSetting(i_key, o_value), but I don't believe that is
available.

So, my question is - is it possible to obtain the current profile's prefs.js
file location without reading the registry.dat file.  Could I
write an XPCOM program that could obtain this
information without directly reading registry.dat?

Thanks, in advance, for any help you can give me,

Al Casa





Reply via email to