Hello Amirreza_nl, I wrote the code that was alluded to earlier in this thread (from CodeGator.com). You are correct that your code is similar to mine, however I am calling a slightly different method to get the path from the PIDL. In my case I am using the SHGetPathFromIDList function. Also, my code doesn't convert from the InPtr to a ITEMIDLIST structure. I am able to deal with PIDL's as IntPtr objects instead of converting them to ITEMIDLIST structures. (See my code here) You don't say which call is failing in your code, is it SHGetSpecialFolderLocation or SHGetFileInfo? My suggestion would be to try omiting the conversion of the PIDL to a struct if possible. I hope I have helped, Martin
Martin Cook Jesus answered, "I am the way and the truth and the life. No one comes to the Father except through me." John 14:6