Group: Shell Functions - Library: shell32
HRESULT SHEmptyRecycleBin(
HWND hwnd,
LPCTSTR pszRootPath,
DWORD dwFlags
);
DECLARE INTEGER SHEmptyRecycleBin IN shell32;
INTEGER hwnd,;
STRING pszRootPath,;
LONG dwFlags
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.
Returns S_OK (0) if successful, or an OLE-defined error value otherwise.