Boost logo

Boost :

Subject: Re: [boost] [filesystem] home_directory_path
From: Christian Holmquist (c.holmquist_at_[hidden])
Date: 2010-10-18 17:50:23


>
> You might be better off calling SHGetFolderPath with a CSIDL value like
>> CSIDL_APPDATA.
>> http://msdn.microsoft.com/en-us/library/bb762181.aspx
>> http://msdn.microsoft.com/en-us/library/bb762494.aspx
>>
>>
>
I think CSIDL_APPDATA is not the correct flag, we're using the following
args to SHGetFolderPath, and it appears to work

   char path[MAX_PATH];
   bool success = SUCCEEDED(SHGetFolderPath(NULL, CSIDL_PERSONAL |
CSIDL_FLAG_CREATE, NULL, 0, path))));

..and I think this would be a most useful addition to boost::filesystem.

HTH,
Christian


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk