Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Respectful Windows apps should call SHGetKnownFolderPath() with FOLDERID_LocalAppData or FOLDERID_RoamingAppData.

Hardcoding paths is a bad idea, since they can change - indeed, they have already changed once in Vista, and the paths that you suggest are obsolete on Vista and above - it's %UserProfile%\AppData now (although it still provides symlinks for compatibility).



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: