Usa SHGetFolderPath.
Se sei su XP farà quel che deve fare, se sei su Vista o 7 farà da wrapper per SHGetKnownFolderPath.
Quote:
|
Note As of Windows Vista, this function is merely a wrapper for SHGetKnownFolderPath. The CSIDL value is translated to its associated KNOWNFOLDERID and then SHGetKnownFolderPath is called. New applications should use the known folder system rather than the older CSIDL system, which is supported only for backward compatibility.
|