A
Abby
Hi,
How do you get the path to the Recycle Bin? The code
int CSIDL_BITBUCKET = 0x000a;
int MAX_PATH = 255;
StringBuilder Folderpath = new StringBuilder(MAX_PATH + 1);
uint cc = SHGetSpecialFolderLocation(IntPtr.Zero, 0x001a, Folderpath);
returns garbage while
uint SHGFP_TYPE_CURRENT = 0;
uint cc = SHGetFolderPath(IntPtr.Zero, History, IntPtr.Zero,
SHGFP_TYPE_CURRENT, Folderpath);
returns "invalid arguments."
I once saw a very convoluted method that was supposed to work but I can't
find it again. The paths are temporarily hard coded in for Vista and XP
defaults but that is not a good solution.
Thanks,
Gary
How do you get the path to the Recycle Bin? The code
int CSIDL_BITBUCKET = 0x000a;
int MAX_PATH = 255;
StringBuilder Folderpath = new StringBuilder(MAX_PATH + 1);
uint cc = SHGetSpecialFolderLocation(IntPtr.Zero, 0x001a, Folderpath);
returns garbage while
uint SHGFP_TYPE_CURRENT = 0;
uint cc = SHGetFolderPath(IntPtr.Zero, History, IntPtr.Zero,
SHGFP_TYPE_CURRENT, Folderpath);
returns "invalid arguments."
I once saw a very convoluted method that was supposed to work but I can't
find it again. The paths are temporarily hard coded in for Vista and XP
defaults but that is not a good solution.
Thanks,
Gary