BUG: SHQueryRecycleBin() Fails with NULL Root Path (266366)



The information in this article applies to:

  • Microsoft Platform Software Development Kit (SDK) 1.0, when used with:
    • Microsoft Windows Millennium Edition
    • the operating system: Microsoft Windows 2000

This article was previously published under Q266366

SYMPTOMS

On a computer that is running Windows 2000, when you call the SHQueryRecycleBin function with NULL or an empty string for the pszRootPath parameter, the SHQueryRecycleBin function doesn't work and returns E_INVALIDARG. The SHQueryRecycleBin function works correctly in previous versions of the shell.

CAUSE

This problem is caused by a bug in the SHQueryRecycleBin function on computers that are running Windows 2000.

RESOLUTION

To obtain the total size of all of the Recycle Bins on the system, you must call SHQueryRecycleBin for each fixed disk, and then add the results together.

STATUS

Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.

Modification Type:MinorLast Reviewed:7/11/2005
Keywords:kbBug kbShellGrp KB266366