Re: [BUGS] More SSL questions..

"Matthew T. O'Connor" <[email protected]>
Newsgroups gmane.comp.db.postgresql.devel.win32,gmane.comp.db.postgresql.bugs
Organization Terrie O'Connor Realtors
Message-ID <[email protected]>
Tom Lane wrote:

>OK ... are you supposed to find it out by looking at the environment
>vars, or is there another API defined?
>
>I am planning to consolidate the platform dependency into a function
>defined like
>
>	static bool pqGetHomeDirectory(char *buf, int bufsize)
>	{
>		-- Obtain pathname of user's home directory, store in
>		-- buf[] (of size bufsize)
>		-- Return TRUE if succeeded, FALSE if not
>	}
>
>If someone can whip up and test a WIN32 version of this, I'll take care
>of the rest.
>  
>

I can't do the coding, but I took a quick look at msdn and I think this 
is relevant:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/shell/reference/functions/shgetfolderpath.asp

HRESULT SHGetFolderPath(      
    HWND /hwndOwner/,
    int /nFolder/,
    HANDLE /hToken/,
    DWORD /dwFlags/,
    LPTSTR /pszPath/
);


Also, for nFolder, it looks like the we want to use a value of 
CSIDL_PROFILE (0x0028). 

Hope that helps someone out there.

Matthew



---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
      subscribe-nomail command to [email protected] so that your
      message can get through to the mailing list cleanly
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.