DECLARE INTEGER SHGetFolderPath ; IN SHFOLDER.DLL ; INTEGER hwndOwner, ; INTEGER nFolder, ; INTEGER hToken, ; INTEGER dwFlags, ; STRING @ pszPathif you look in msdn help for this function and the 'shlfolder.h' file, that should give you what you need.