Advertisement
InfinityExistz

Empty Recyle bin VBNET

Aug 1st, 2011
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 0.40 KB | None | 0 0
  1. Private Declare Function SHEmptyRecycleBin Lib "shell32.dll" Alias "SHEmptyRecycleBinA" (ByVal hWnd As Int32, ByVal pszRootPath As String, ByVal dwFlags As Int32) As Int32
  2.     Private Declare Function SHUpdateRecycleBinIcon Lib "shell32.dll" () As Int32
  3.     Private Sub EmptyRecycleBin()
  4.         SHEmptyRecycleBin(0, "", &H1 + &H4)
  5.         SHUpdateRecycleBinIcon()
  6.     End Sub
  7.  
  8. Usage:
  9.  
  10. EmptyRecycleBin()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement