
10 Sep
2013
10 Sep
'13
10:50 p.m.
On 11/09/2013 3:50 a.m., Quoth Ion GaztaƱaga:
if shared documents folder is not found, then the temporary path is used. The shared documents folder is found in the registry in the following key:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders\Common AppData
That's the wrong way to do it. You should instead call either SHGetKnownFolderPath (on Vista+) or SHGetFolderPath (on -XP). Don't forget to pass the flag that requests creation of the folder if it doesn't already exist.