12 if(SHGetFolderPath(0, CSIDL_PERSONAL, 0, 0, home)==S_OK)
17 Path get_user_data_dir(const string &appname)
20 throw invalid_argument("get_user_data_dir");
21 char datadir[MAX_PATH];
22 if(SHGetFolderPath(0, CSIDL_LOCAL_APPDATA, 0, 0, datadir)==S_OK)
23 return Path(datadir)/appname;