How to get the public desktop folder path in XP (C++)?
I need a way to get the path of the public desktop folder that has to work on XP as well as the newer flavours of Windows and must be (human) language-independent. There doesn't seem to be a setting in the environment variables that covers 开发者_JS百科this folder.
SHGetKnownFolderPath() only works in Vista and later, so I need to know if there's another function that will work for me.
call SHGetSpecialFolderLocation with CSIDL_COMMON_DESKTOPDIRECTORY
精彩评论