Boost logo

Boost :

Subject: Re: [boost] [interprocess] Different processes accessing shared memory in different locations
From: Gavin Lambert (gavinl_at_[hidden])
Date: 2013-09-10 18:50:58


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.


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