SHEmptyRecycleBinSHEmptyRecycleBin*
*Contents  *Index  *Topic Contents
*Previous Topic: ShellAbout
*Next Topic: ShellExecute

SHEmptyRecycleBin


SHSTDAPI SHEmptyRecycleBin(
    HWND hwnd, 
    LPCTSTR pszRootPath, 
    DWORD dwFlags
);		

Empties the recycle bin on the specified drive.

hwnd
Handle to the parent window of any dialog boxes that might be displayed during the operation. This parameter can be NULL.
pszRootPath
Address of a NULL-terminated string that contains the path of the root drive on which the recycle bin is located. This parameter can contain the address of a string formatted with the drive, folder, and subfolder names (c:\windows\system . . .). It can also contain an empty string or NULL. If this value is an empty string or NULL, all recycle bins on all drives will be emptied.
dwFlags
One or more of the following values:
SHERB_NOCONFIRMATION No dialog confirming the deletion of the objects will be displayed.
SHERB_NOPROGRESSUI No dialog indicating the progress will be displayed.
SHERB_NOSOUND No sound will be played when the operation is complete.

See also SHQueryRecycleBin


Up Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.