You are here

SHQueryRecycleBin (Windows 2000 Testers Needed)

4 posts / 0 new
Last post
wraithdu
Offline
Last seen: 10 years 9 months ago
Developer
Joined: 2007-06-27 20:22
SHQueryRecycleBin (Windows 2000 Testers Needed)

Hi everyone, I could use a little testing help again. This is a tiny test program for a function to query the Recycle Bin status. This is going into the EraserDropTarget rewrite, so I need to make sure it'll work correctly on Win2k (MSDN is a little shady again).

It will pop up 2 message boxes that show the size and number of items in the Recycle Bin. The first one queries the Bin on the C:\ drive, the second queries all Bins on all drives. What I need to know is if anything crashes or fails with bad data, specifically the second function call (2nd message box).

If you have a minute, play around with recycling things from different drives, so the results for box 1 and box 2 should be different. Please specify what OS you are testing. I've already tested XP and Vista, so I really only need Win2k results. But feel free to play anyway. This should work correctly for empty folders and 0 byte files as well, showing a 0 size, but 1 or more items. Thanks!

http://nascent-project.org/wraithdu/files/RBin.exe

ZachHudock
ZachHudock's picture
Offline
Last seen: 1 year 2 months ago
Developer
Joined: 2006-12-06 18:07
Works correctly on XP Pro SP2

Works correctly on XP Pro SP2 with various sizes of files in the bin, including empty. (couldn't test the multiple drives part on this machine)

The developer formerly known as ZGitRDun8705

muskrat
muskrat's picture
Offline
Last seen: 1 year 9 months ago
Joined: 2005-12-09 08:24
Win2K SP4 works

Win2K SP4 works

Found my RB and the 44 items I trashed today.
Emptied RB and it found 0 items. Yeah!

It did find on both occasions "Recycle Bin" and "Recycle Bin 2" for the same amounts.

I do not have access to multiple hard drive configuration at the moment but can run tonight from VMWare machine.

/s/ When life turns your dreams to dust, vacuum Wink

wraithdu
Offline
Last seen: 10 years 9 months ago
Developer
Joined: 2007-06-27 20:22
Awesome. Thanks guys! I

Awesome. Thanks guys!

I appreciate the time. And the VMware test will be good as well. The biggest thing I was worried about was it crashing. MSDN was unclear on what happens when you use an empty string for one of the params on Win2k, which is supposed to check all Bins. It says it will crash if the param is NULL, but not clear on an empty string.

If it works with multiple drives on Win2k, this will be perfect Smile

Log in or register to post comments