In the first part I showed how to delete a file (yet another different way) and how to clear Recycle Bin. Clearing Recycle Bin was most special since API call that did the work wasn't present in API Viewer. And now here is something even more special: opening Recycle Bin straight from your app!
Now to accomplish the task, there was a trick that had to be used worth knowing. You see, in Windows environment, stuff like My Computer, Control Panel, and Recycle Bin are all shown by one singe application (explorer.exe i believe). This is sort of hidden from the user since she/he doesn't care what is showing the content, because the content is what matters. Well for us, to view Recycle Bin, we will use eplorer.exe with special calling sequence. Here is the code:
Public Sub ShowRecyclebin()
Written By Laimonas Simutis. 2002. email@example.com