There is probably a win32 sdk function you can call from the dll adapter which could do that. I think SHGetFolderPath() has the functionality you are looking for. Look on the microsoft developer's network website for more details on this function.
Hope this helps,
-Doug