Win32 has a GetFolderPath() function that appears to wrap SHGetSpecialFolderPath(). Call it with one of the CSIDL_xxx constants and you get the folder name.
Each and every new Windows version has a new API to get the "special" folders' paths, and the old APIs are implemented as wappers for the new APIs. Follow the links to find the details. The current name for the real function seems to be SHGetKnownFolderPath, and it requires a KNOWNFOLDERID. You could use Win32::API to call that function if you detect that your program runs on a modern Windows version.
Alexander
In reply to Re: windows app-data path
by afoken
in thread windows app-data path
by momo33
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |