in reply to How to get location of Desktop folder on Win32

Use the API function SHGetSpecialFolderLocation. For an example usage, take a look at the get_special_folder function in Win32Util.
  • Comment on Re: How to get location of Desktop folder on Win32