prefs directory for current user

Pawan Joshi <[email protected]>
Newsgroups gmane.comp.mozilla.devel.prefs
Organization Another Netscape Collabra Server User
Message-ID <[email protected]>
Hi,

Inside the Http protocol handler code, I wanted to find out the 
preference directory for the current user. E.g. if the user is 
"Default", I can call some API which will return 
"C:\WINNT\Profiles\Administrator\Application 
Data\Mozilla\Profiles\test\ds3ogj4e.slt". I need that API.

Why I need this:
I am making some changes in the protocol Handler and I need to store the 
current user's preferences in his/her directory. At startup, I need to 
read these files and act accrodingly.

In case this is not the right newsgroup for this question, where should 
I post it ?

Thanks and Regards
-Pawan
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.