Microsoft KB Archive/266366

{|
 * width="100%"|

BUG: SHQueryRecycleBin Fails with NULL Root Path

 * }

Q266366

-

The information in this article applies to:


 * Microsoft Win32 Software Development Kit (SDK), on platform(s):
 * Microsoft Windows Millennium Edition
 * the operating system: Microsoft Windows 2000

-

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 this to be a bug in the Microsoft products listed at the beginning of this article.

Additional query words: winme Win Me

Keywords : kbLib kbOSWin2000bug kbSDKPlatform kbSDKWin32 kbShellGrp kbDSupport kbOSWinME

Issue type : kbbug

Technology : kbWin32SDKSearch kbAudDeveloper kbSDKSearch kbWin32sSearch