Ignore:
Timestamp:
1/5/2009 9:37:55 AM (3 years ago)
Author:
lowjoel
Message:

-Moved all Shell calls to ShellAPI.cs
-Empty the recycle bin after we are done with the erase
-Only erase the recycle bin that belongs to the current user

Partially fixes #139

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eraser6/Manager/DirectExecutor.cs

    r830 r850  
    11061106                    RemoveFolder(new DirectoryInfo(fldr.Path)); 
    11071107            } 
     1108 
     1109            //If the user was erasing the recycle bin, clear the bin. 
     1110            if (target is Task.RecycleBin) 
     1111            { 
     1112                ShellAPI.SHEmptyRecycleBin(IntPtr.Zero, null, 
     1113                    ShellAPI.SHEmptyRecycleBinFlags.SHERB_NOCONFIRMATION | 
     1114                    ShellAPI.SHEmptyRecycleBinFlags.SHERB_NOPROGRESSUI | 
     1115                    ShellAPI.SHEmptyRecycleBinFlags.SHERB_NOSOUND); 
     1116            } 
    11081117        } 
    11091118 
Note: See TracChangeset for help on using the changeset viewer.