Path to user's desktop folder
-
Hi All, Ok, this should be easy to figure out, but I can't seem to google a good answer. I need a way to programmatically discover the path to the current user's desktop. Something similar to GetWindowsDirectory() or GetSystemDirectory(), I guess. The only think I could find was VBScript stuff like WshShell.SpecialFolders(...) or using the Windows Shell COM stuff. There must be a simpler way to do this in C++, no? TIA, Pete
-
Hi All, Ok, this should be easy to figure out, but I can't seem to google a good answer. I need a way to programmatically discover the path to the current user's desktop. Something similar to GetWindowsDirectory() or GetSystemDirectory(), I guess. The only think I could find was VBScript stuff like WshShell.SpecialFolders(...) or using the Windows Shell COM stuff. There must be a simpler way to do this in C++, no? TIA, Pete
How about
SHGetFolderPath(..., CSIDL_DESKTOPDIRECTORY, ...)
?
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
-
How about
SHGetFolderPath(..., CSIDL_DESKTOPDIRECTORY, ...)
?
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown