Declare Function SHUpdateRecycleBinIcon Lib "shell32.dll" () As Long
SHUpdateRecycleBinIcon updates the Recycle Bin icon on the desktop to reflect the state of the systemwide Recycle Bin. Since the other Recycle Bin management functions will update this icon on their own, there's almost no reason why your applications would need to call this function explicitly.
If an error occued, the function returns a non-zero error code. If successful, the function returns 0.
None.
None.
' Delete the contents in the system's Recycle Bin, without
' showing the progress dialog. If an error occurs, be safe and
' make sure the proper Recyle Bin icon is used.
Dim retval As Long ' return value
' Delete the contents of the system's Recycle Bin, if the user OKs it.
retval = SHEmptyRecycleBin(Form1.hWnd, "", SHERB_NOPROGRESSUI)
' If an error occured, be overly save and refresh the Recycle Bin
' icon. This probably isn't necessary, however.
If retval <> 0 Then ' error
retval = SHUpdateRecycleBinIcon()
End If
Last Modified: September 1, 1999
This page is copyright © 1999 Paul Kuliniewicz. Copyright Information