Re: [pgsql-hackers-win32] More SSL questions.. - Mailing list pgsql-bugs

From Andrew Dunstan
Subject Re: [pgsql-hackers-win32] More SSL questions..
Date
Msg-id 41DB1DF5.1060007@dunslane.net
Whole thread Raw
In response to Re: More SSL questions..  ("Matthew T. O'Connor" <matthew@zeut.net>)
List pgsql-bugs

Matthew T. O'Connor wrote:

> Tom Lane wrote:
>
>>
>>
>> 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).


Er, I don't think so. MSDN says:

CSIDL_PROFILE (0x0028)
    Version 5.0. The user's profile folder. A typical path is
C:\Documents and Settings\username. Applications should not create files
or folders at this level; they should put their data under the locations
referred to by CSIDL_APPDATA or CSIDL_LOCAL_APPDATA.

I think CSIDL_APPDDATA is probably the way to go, but one of the heavy
Windows hitters will know better than I do.

cheers

andrew




pgsql-bugs by date:

Previous
From: "Aguinaldo Possatto"
Date:
Subject: BUG #1371: Short-circuit evaluation on PL/PgSQL
Next
From: "Joshua D. Drake"
Date:
Subject: Re: [pgsql-hackers-win32] More SSL questions..