Example #1
0
 public static bool EmptyRecycleBin(RecycleFlag flags = 0)
 {
     try {
         int result = NativeMethods.SHEmptyRecycleBin(IntPtr.Zero, null, flags);
         return(result == 0);
     } catch (Exception) {
         return(false);
     }
 }
Example #2
0
 static extern int SHEmptyRecycleBin(IntPtr hwnd, string pszRootPath, RecycleFlag dwFlags);
Example #3
0
 private static extern int SHEmptyRecycleBin(System.IntPtr hwnd, string pszRootPath, RecycleFlag dwFlags);
Example #4
0
 static extern int SHEmptyRecycleBin(IntPtr hwnd, string pszRootPath, RecycleFlag dwFlags);