Click here to Skip to main content
15,899,474 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionhow Pin
benniej1518-Mar-06 3:55
benniej1518-Mar-06 3:55 
AnswerRe: how Pin
PJ Arends18-Mar-06 4:44
professionalPJ Arends18-Mar-06 4:44 
QuestionObtaining recycle bin folder Pin
Chintoo72318-Mar-06 3:31
Chintoo72318-Mar-06 3:31 
AnswerRe: Obtaining recycle bin folder Pin
Hamid_RT18-Mar-06 5:15
Hamid_RT18-Mar-06 5:15 
AnswerRe: Obtaining recycle bin folder Pin
Michael Dunn18-Mar-06 5:48
sitebuilderMichael Dunn18-Mar-06 5:48 
GeneralRe: Obtaining recycle bin folder Pin
Chintoo72318-Mar-06 15:58
Chintoo72318-Mar-06 15:58 
GeneralRe: Obtaining recycle bin folder Pin
Michael Dunn18-Mar-06 18:20
sitebuilderMichael Dunn18-Mar-06 18:20 
GeneralRe: Obtaining recycle bin folder Pin
Chintoo72318-Mar-06 18:47
Chintoo72318-Mar-06 18:47 
OK, that means I cannot use both of SHGetFolderPath and SHGetSpecialFolderPath.
Btw, both of these APIs returned last error 6 (invalid handle), which in some sense is meaningless.

Looking at the codeproject article you gave, they use SHGetSpecialFolderLocation which supports CSIDL_BITBUCKET, but it returns LPITEMIDLIST and I am not sure how to obtain the folder name from that.

In any case, I was looking at the documentation of CSIDL_BITBUCKET again, and it gives me the virtual folder containing the items in the recycle bin. I'm not sure if COM is the only way to access the items in this virtual folder, as shown in the article, or if there is a simpler way too.

So, what I really want is, the name of the recycle bin folder on each of the drives on the system, like C:\RECYCLER. Since it is C:\RECYCLED on a FAT drive, I wanted to use a windows API to obtain the correct name. So, I guess CSIDL_BITBUCKET wont give me that - is this right?

So, may be I should just enumerate the drives, get the file system type, and use RECYCLED or RECYCLER appropriately. Here is a link that talks about these folder names - http://blogs.msdn.com/oldnewthing/archive/2006/01/31/520225.aspx[^] - although it is not clear from this link what happens to a folder named RECYCLER on a FAT drive that is converted to NTFS.

thanks!
GeneralRe: Obtaining recycle bin folder Pin
Michael Dunn18-Mar-06 19:43
sitebuilderMichael Dunn18-Mar-06 19:43 
QuestionWin32 Slider Control Pin
amanoullah18-Mar-06 2:43
amanoullah18-Mar-06 2:43 
QuestionAn Icon on a Button Pin
ariesaloksingh18-Mar-06 1:46
ariesaloksingh18-Mar-06 1:46 
AnswerRe: An Icon on a Button Pin
Monty218-Mar-06 1:57
Monty218-Mar-06 1:57 
AnswerRe: An Icon on a Button Pin
Hamid_RT18-Mar-06 1:58
Hamid_RT18-Mar-06 1:58 
Questionrelated to mozilla firefox Pin
rajeevktripathi18-Mar-06 1:18
rajeevktripathi18-Mar-06 1:18 
QuestionWinAPI resources - using language packs Pin
Luy18-Mar-06 0:17
Luy18-Mar-06 0:17 
AnswerRe: WinAPI resources - using language packs Pin
Monty218-Mar-06 0:58
Monty218-Mar-06 0:58 
GeneralRe: WinAPI resources - using language packs Pin
Luy18-Mar-06 2:05
Luy18-Mar-06 2:05 
AnswerRe: WinAPI resources - using language packs Pin
Charlietoday18-Mar-06 4:27
Charlietoday18-Mar-06 4:27 
GeneralRe: WinAPI resources - using language packs Pin
Luy18-Mar-06 7:56
Luy18-Mar-06 7:56 
QuestionThree questions Pin
hanno2517-Mar-06 22:45
hanno2517-Mar-06 22:45 
AnswerRe: Three questions Pin
Waldermort17-Mar-06 23:11
Waldermort17-Mar-06 23:11 
AnswerRe: Three questions Pin
Stephen Hewitt18-Mar-06 19:00
Stephen Hewitt18-Mar-06 19:00 
Questionsimple question Pin
big_denny_20017-Mar-06 20:42
big_denny_20017-Mar-06 20:42 
AnswerRe: simple question Pin
Aqueel17-Mar-06 20:52
Aqueel17-Mar-06 20:52 
AnswerRe: simple question Pin
Charlietoday17-Mar-06 21:43
Charlietoday17-Mar-06 21:43 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.