[PATCH 1/6] shell32/tests: Add tests for SHQueryRecycleBin

Jay Yang jkelleyy at gmail.com
Thu Jul 7 14:05:50 CDT 2011

One caveat on this patch, the test adds and doesn't remove one (small) file to the recycle bin every
time it runs. This is because I can't find a clean method to remove a particular file from the
recycle bin. There are functions to clear the entire recycle bin, but the only method I can think of
to remove one particular file is to get the IShellFolder object for the recycle bin, enumerate the
objects, find the correct one, get the IContextMenu object for that item, and invoke the delete
command. But this doesn't seem like a clean way of doing it
 dlls/shell32/tests/recyclebin.c |  103 +++++++++++++++++++++++++++++++++++++++
 1 files changed, 103 insertions(+), 0 deletions(-)
 create mode 100644 dlls/shell32/tests/recyclebin.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-shell32-tests-Add-tests-for-SHQueryRecycleBin.txt
Type: text/x-patch
Size: 3934 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20110707/6dd46ff3/attachment.bin>

More information about the wine-patches mailing list