Hello Everybody,

Why does this not code find path to recycle bin.  It works fine for CSIDL_APPDATA, CSIDL_COOKIES etc.

FindRecycler proc

    LOCAL OutputPath

invoke SHGetSpecialFolderLocation,NULL,CSIDL_BITBUCKET,addr PIDL
invoke SHGetPathFromIDList,,addr OutputPath


FindRecycler endp

Any ideas or suggestions much appreciated.

best regards,

Posted on 2006-08-09 00:28:39 by czDrillard
The CSIDL_BITBUCKET is a virtual folder. Which path would you expect the function to return? The one on C: drive, on D: drive or on any other drive?

What you get after calling SHGetSpecialFolderLocation,NULL,CSIDL_BITBUCKET,addr PIDL is a GUID of the Recycle Bin.
Posted on 2006-08-09 01:12:02 by Morris