maybe you've already read Jim Barry's newsgroup posting. He can reproduce the problem, if he deletes the following key: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Desktop\NameSpace\{645FF040-5081-101B-9F08-00AA002F954E}
Maybe you've removed this key to hide the recycle bin from your desktop. You shouldn't do this. TweakUI removes the recycle bin in another way, which doesn't cause the problems you encountered. However, I can't tell you what TweakUI is doing in detail.
TiKu
Crunching for Fab36_Folding-Division at Folding@Home. Join Fab36/Fab30! - Folding@Home and BOINC
Boycott DRM! Boycott HDCP!
The remaining downer is, that the code does not return the original filenames but the names, windows uses to administrate the recyle bin. (f.i. dg20, dh3...)
Thank you again for your last sample. It's great though hard to understand
I tried to cope with it and get further infos like delete-date or origin of a deleted file but failed
No matter, if you don't like to deal with this problem any more, but if maybe even you are keen on this feature and would share your knowledge ...
I've replaced the textbox with my listview control, made the app Unicode-aware and implemented the requested features.
It won't run on Windows 9x/Me anymore, because those systems don't support Unicode. It also probably won't run on Windows NT 4.0 anymore, because this system probably doesn't support the IShellFolder2 interface. You could try to use IShellDetails instead, if you need support for NT4.