OK I'm testing this in XP just now, and already I'm not getting expected results.
env var ALLUSERSPROFILE = C:\Documents and Settings\All Users
CSIDL_COMMON_APPDATA = C:\Documents and Settings\All Users\Application Data\
I kind of expected to get the same result for both.
Looking at C:\Documents and Settings\All Users, this isn't really a good place to be storing game data. Nothing else does - every other app puts it in \Application data (hidden folder).
Tim - can you clarify if you're writing data directly into \All Users, or manually adding an "\Application Data" suffix to the returned path?
env var ALLUSERSPROFILE = C:\Documents and Settings\All Users
CSIDL_COMMON_APPDATA = C:\Documents and Settings\All Users\Application Data\
I kind of expected to get the same result for both.
Looking at C:\Documents and Settings\All Users, this isn't really a good place to be storing game data. Nothing else does - every other app puts it in \Application data (hidden folder).
Tim - can you clarify if you're writing data directly into \All Users, or manually adding an "\Application Data" suffix to the returned path?