SHEmptyRecycleBin<br><br><br>Empties the Recycle Bin on the specified drive. <br><br>HRESULT SHEmptyRecycleBin(<br> HWND hwnd, <br> LPCTSTR pszRootPath, <br> DWORD dwFlags<br>);<br><br>Parameters<br>hwnd <br>Handle to the parent window of any dialog boxes that might be displayed during the operation. This parameter can be NULL. <br>pszRootPath <br>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. <br>dwFlags <br>One or more of the following values: SHERB_NOCONFIRMATION No dialog confirming the deletion of the objects will be displayed. <br>SHERB_NOPROGRESSUI No dialog indicating the progress will be displayed. <br>SHERB_NOSOUND No sound will be played when the operation is complete. <br><br>Return Values<br>Returns S_OK if successful, or an OLE-defined error value otherwise. <br><br>See Also<br>SHQueryRecycleBin <br><br>Requirements <br> Version 4.71 and later of Shell32.dll<br><br> Windows NT/2000: Requires Windows 2000 (or Windows NT 4.0 with Internet Explorer 4.0 or later). <br> Windows 95/98: Requires Windows 98 (or Windows 95 with Internet Explorer 4.0 or later). <br> Header: Declared in shellapi.h. <br> Import Library: shell32.lib.<br>