PRB: Namespace Extension Folder Does Not Update Correctly in Windows Explorer Tree View (315977)
The information in this article applies to:
- Microsoft Win32 Application Programming Interface (API), when used with:
- the operating system: Microsoft Windows XP
This article was previously published under Q315977 SYMPTOMS
When you send the SHCNE_UPDATEDIR notification with the SHChangeNotify function to update the contents of a namespace extension folder, the folder node in Windows Explorer tree view may not update correctly. Subfolders that no longer exist in the folder still appear in the tree.
CAUSE
Windows Explorer's tree view shares information with folder objects primarily through their IShellFolder interface. The following list outlines the process: - Windows Explorer tree view calls the IShellFolder::EnumObjects method of the folder to enumerate the folder's subfolders while Windows Explorer tree view processes the SHCNE_UPDATEDIR notification.
- Windows Explorer tree view calls the IShellFolder::GetAttributesOf method with the SFGAO_VALIDATE flag on subfolders that exist in the tree but that are not found in the enumeration.
- Windows Explorer tree view removes the subfolders from the tree if the call to IShellFolder::GetAttributesOf returns a failure code.
RESOLUTION
Ensure that namespace extensions handle SFGAO_VALIDATE correctly in their IShellFolder::GetAttributesOf method. The namespace extensions return an error if one or more of the objects that is passed to GetAttributesOf no longer exists.
REFERENCES
For more information about the shell interfaces, refer to the following MSDN Web site:
Modification Type: | Major | Last Reviewed: | 10/30/2003 |
---|
Keywords: | kbNameSpace kbnofix kbprb kbShellGrp KB315977 |
---|
|