[quote]I'll be glad when we get to the bottom of this and find a definitive right way of doing things. [/quoteme three!
WendellM: lol @ video and "sad realisation" ... "allow"
GfK: Hmm so there is:
Const CSIDL_APPDATA = $1A
Const CSIDL_LOCAL_APPDATA = $1C
Const CSIDL_COMMON_APPDATA = $23
Wonder what the difference is?
When I do the set command on XP I see:
ALLUSERSPROFILES=C:\Documents and Settings\All Users
APPDATA=C:\Documents and Settings\Jake Birkett\Application Data
CommonProgramFiles=C:\Program Files\Common Files
HOMEPATH=C:\Documents and Settings\Jake Birkett\
USERPROFILE=C:\Documents and Settings\Jake Birkett\
And that's it in terms of useful paths.
Reading that MSDN doc again it seems to say that you should use:
CSIDL_LOCAL_APPDATA C:\Users\user name\AppData\Local
To store user-specific data such as save game and any player specific configuration preferences.
CSIDL_COMMON_APPDATA C:\ProgramData
To create game data that cn be read by everone e.g. high scores and global config BUT it says that only the original user can WRITE to it. So this must be where setting the file to EVERYONE comes in.
Also what I want to know is do these CSIDL consts/paths work in XP and 2000 (probably), and also do they work in 98/ME or do they return Null or something?
WendellM: lol @ video and "sad realisation" ... "allow"
GfK: Hmm so there is:
Const CSIDL_APPDATA = $1A
Const CSIDL_LOCAL_APPDATA = $1C
Const CSIDL_COMMON_APPDATA = $23
Wonder what the difference is?
When I do the set command on XP I see:
ALLUSERSPROFILES=C:\Documents and Settings\All Users
APPDATA=C:\Documents and Settings\Jake Birkett\Application Data
CommonProgramFiles=C:\Program Files\Common Files
HOMEPATH=C:\Documents and Settings\Jake Birkett\
USERPROFILE=C:\Documents and Settings\Jake Birkett\
And that's it in terms of useful paths.
Reading that MSDN doc again it seems to say that you should use:
CSIDL_LOCAL_APPDATA C:\Users\user name\AppData\Local
To store user-specific data such as save game and any player specific configuration preferences.
CSIDL_COMMON_APPDATA C:\ProgramData
To create game data that cn be read by everone e.g. high scores and global config BUT it says that only the original user can WRITE to it. So this must be where setting the file to EVERYONE comes in.
Also what I want to know is do these CSIDL consts/paths work in XP and 2000 (probably), and also do they work in 98/ME or do they return Null or something?