How to expanding environmental variables?
thestig at google.com
Mon Jul 20 13:50:37 CDT 2009
On Mon, Jul 20, 2009 at 2:08 AM, Yuri Khan<yurivkhan at gmail.com> wrote:
> On Sat, Jul 18, 2009 at 06:16, Austin English<austinenglish at gmail.com> wrote:
>> I need a portable way to get to the shared documents folder, e.g.,:
>> Windows XP:
>> C:\Documents and Settings\All Users\Shared Documents
>> WIndows Vista:
>> C:\users\Public\Public Documents
> In Windows, the proper portable way is to #include <shlobj.h>, link to
> shell32.lib and call SHGetFolderPath for CSIDL_COMMON_DOCUMENTS. Works
> on Windows 9x with IE5 installed, and on all NT-family systems. It
> also seems to be implemented in current Wine.
Sounds like you'd want a small helper binary to do this.
More information about the wine-devel