Skip to content

Latest commit

 

History

History
51 lines (36 loc) · 1015 Bytes

SHEmptyRecycleBin.md

File metadata and controls

51 lines (36 loc) · 1015 Bytes

Home

Function name : SHEmptyRecycleBin

Group: Shell Functions - Library: shell32


Empties the Recycle Bin on the specified drive.


Code examples:

How to empty the Recycle Bin

Declaration:

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

FoxPro declaration:

DECLARE INTEGER SHEmptyRecycleBin IN shell32;
	INTEGER hwnd,;
	STRING  pszRootPath,;
	LONG    dwFlags  

Parameters:

hwnd Handle to the parent window of any dialog boxes that might be displayed during the operation.

pszRootPath Address of a null-terminated string of maximum length MAX_PATH that contains the path of the root drive on which the Recycle Bin is located.

dwFlags One or more of the predefined values.


Return value:

Returns S_OK (0) if successful, or an OLE-defined error value otherwise.