Re: [BUGS] More SSL questions..

Andrew Dunstan <[email protected]>
Newsgroups gmane.comp.db.postgresql.devel.win32,gmane.comp.db.postgresql.bugs
Message-ID <[email protected]>

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




---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
    (send "unregister YourEmailAddressHere" to [email protected])
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.