Group: Shell Functions - Library: shell32
How to retrieve the number of objects stored in the Recycle Bin
HRESULT SHQueryRecycleBin(
LPCTSTR pszRootPath,
LPSHQUERYRBINFO pSHQueryRBInfo
); DECLARE INTEGER SHQueryRecycleBin IN shell32;
STRING pszRootPath,;
STRING @ pSHQueryRBInfo pszRootPath Address of a null-terminated string of maximum length MAX_PATH to contain the path of the root drive on which the Recycle Bin is located.
pSHQueryRBInfo Address of a SHQUERYRBINFO structure that receives the Recycle Bin information.
Returns S_OK (0) if successful, or an OLE-defined error value otherwise.
Home