I'm trying to retrieve the physical path of the Recycle bin in a VC++6 application (under Win XP Pro SP2) using "SHGetSpecialFolderLocation":
char szPath[MAX_PATH];
LPITEMIDLIST pidl = NULL;
SHGetSpecialFolderLocation(NULL, CSIDL_BITBUCKET, &pidl);
SHGetPathFromIDList(pidl, &szPath[0]);
The result is a blank path while if I try it with "CSIDL_COMMON_STARTUP" I can retrieve its path. What's wrong?
Thanks,
Marc Soleda
char szPath[MAX_PATH];
LPITEMIDLIST pidl = NULL;
SHGetSpecialFolderLocation(NULL, CSIDL_BITBUCKET, &pidl);
SHGetPathFromIDList(pidl, &szPath[0]);
The result is a blank path while if I try it with "CSIDL_COMMON_STARTUP" I can retrieve its path. What's wrong?
Thanks,
Marc Soleda