コード例 #1
0
ファイル: ShellApi.cs プロジェクト: RoDaniel/featurehouse
 public static void EmptyRecycleBin(EmptyRecycleBinOptions options)
 {
     NativeMethods.SHEmptyRecycleBin(IntPtr.Zero, null,
     (NativeMethods.SHEmptyRecycleBinFlags)options);
 }
コード例 #2
0
ファイル: RecycleBin.cs プロジェクト: herocodemaster/eraser
 /// <summary>
 /// Empties the recycle bin for the current user.
 /// </summary>
 /// <param name="options">The list of flags to pass to the shell regarding
 /// the user feedback, etc.</param>
 public static void Empty(EmptyRecycleBinOptions options)
 {
     NativeMethods.SHEmptyRecycleBin(IntPtr.Zero, null,
                                     (NativeMethods.SHEmptyRecycleBinFlags)options);
 }