Re: More SSL questions..

From: "Matthew T(dot) O'Connor" <matthew(at)zeut(dot)net>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: "T(dot)J(dot)" <tjtoocool(at)phreaker(dot)net>, pgsql-bugs(at)postgresql(dot)org, pgsql-hackers-win32(at)postgresql(dot)org
Subject: Re: More SSL questions..
Date: 2005-01-04 22:28:45
Message-ID: 41DB189D.7080501@zeut.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs pgsql-hackers-win32

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

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Andrew Dunstan 2005-01-04 22:51:33 Re: [pgsql-hackers-win32] More SSL questions..
Previous Message Tom Lane 2005-01-04 22:12:04 Re: More SSL questions..

Browse pgsql-hackers-win32 by date

  From Date Subject
Next Message Andrew Dunstan 2005-01-04 22:51:33 Re: [pgsql-hackers-win32] More SSL questions..
Previous Message Tom Lane 2005-01-04 22:12:04 Re: More SSL questions..