vijay wrote:
> Could anybody help me find an XPCOM alias for Windows AllUsers/
> Application Data folder?
> 
There are some ways to get "special folders":
http://developer.mozilla.org/en/docs/Code_snippets:File_I/O#Getting_special_files
Furthermore there are some OS specific Folders as well:
http://mxr.mozilla.org/mozilla/source/xpcom/io/nsDirectoryServiceDefs.h#154
But I never tried those myself, and I don't see "Common AppData" there...

You may use the Windows API itself if you're developing in C++:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/shell/reference/functions/shgetspecialfolderpath.asp
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/shell/reference/functions/shgetfolderpath.asp

CSIDL_COMMON_APPDATA is supported from Win2k/WinME IIRC.
Furthermore regular user accounts (in Windows Context) may not write to
that folder IIRC.
So be cautious.
_______________________________________________
dev-tech-xpcom mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-xpcom

Reply via email to