Advertisement
Guest User

emptyrecyclebin.cs

a guest
May 30th, 2013
29
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.42 KB | None | 0 0
  1. using System;
  2. using System.Runtime.InteropServices;
  3.  
  4. class Test
  5. {
  6.     public const int SHERB_NOCONFIRMATION = 0x00000001;
  7.     public const int SHERB_NOPROGRESSUI = 0x00000002;
  8.     public const int SHERB_NOSOUND = 0x00000004;
  9.  
  10.     [DllImport("shell32.dll")]
  11.     static extern int SHEmptyRecycleBin(IntPtr hwnd, string root, int flags);
  12.    
  13.     public static void Main(string[] args)
  14.     {
  15.         SHEmptyRecycleBin(IntPtr.Zero, null, 0);
  16.     }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement