Windows common folder

227 Views Asked by At

Does the env. variable ALLUSERSPROFILE and the function

SHGetSpecialFolderPath(0, path, CSIDL_COMMON_APPDATA, FALSE)

Will always lead to the same path (in all Windows versions)?

I need this because our installer uses the env. variable and in our code we use the function call.

Thanks

1

There are 1 best solutions below

0
On BEST ANSWER

Function and enviromental varibale will be same path. Im not sure if they will both be the same string on all versions of windows, IE one could produce a "DOS path".

Folder is likely to change between versions of windows and windows install language.

Testing on Windows 7 and XP both seem to produce a long path name ( IE above 8 chars )