|
|
|
date: Fri, 8 Aug 2008 08:11:29 -0700,
group: microsoft.public.platformsdk.shell
back
Intermittent icon overlay update failure after sending SHChangeNot
Hello,
Our product is a software suite that includes a shell extension and an icon
overlay component. I am seeing some troubling, intermittent behavior that
perhaps somebody could explain or provide ideas for fixing.
If I right click on a file or folder and select our action from the context
menu, our shell extension does some stuff to the file or folder that changes
whether or not our icon overlay should be displayed. When the shell
extension is done with its work, it calls:
SHChangeNotify(SHCNE_UPDATEITEM, SHCNF_PATH, pathToFileorDir, NULL)
To notify the shell to update the icon overlay for the item. Sometimes the
shell responds to this message and updates the icon, sometimes it doesn't.
The problem seems to be exacerbated on UNC paths. I do believe it is a
timing issue of some sort, because the icon is updated every single time if I
put a five second sleep in the shell extension before calling SHNotifyIcon.
Also, I have verified that in the cases where the icon is not updated,
Explorer never calls into IShellIconOverlayIdentifier::IsMemberOf in our icon
overlay library. It is as if Explorer is ignoring the update notificaiton.
Thank you for any feedback you can offer.
--
-Jack
date: Fri, 8 Aug 2008 08:11:29 -0700
author: Jack Smith am
|
|