Skip to content

Latest commit

 

History

History
46 lines (32 loc) · 1.09 KB

File metadata and controls

46 lines (32 loc) · 1.09 KB

Home

Function name : SHQueryRecycleBin

Group: Shell Functions - Library: shell32


Retrieves the size of the Recycle Bin, and the number of items in it, on the specified drive.


Code examples:

How to retrieve the number of objects stored in the Recycle Bin

Declaration:

HRESULT SHQueryRecycleBin(
	LPCTSTR pszRootPath,
	LPSHQUERYRBINFO pSHQueryRBInfo
);  

FoxPro declaration:

DECLARE INTEGER SHQueryRecycleBin IN shell32;
	STRING   pszRootPath,;
	STRING @ pSHQueryRBInfo  

Parameters:

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.


Return value:

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