jeudi 30 juin 2016

The Context Menu for a Shell Extension is Not Appearing in the Folder View in Explorer


I have a Windows Shell Namespace extension mounted at a file location using the desktop.ini file with the CLSID for my namespace extension specified.

[.ShellClassInfo]
CLSID2={abcdef01-abcd-abcd-abcd-abcdef012345}

However, my context menu for the namespace extension only appears in the tree view in explorer and not in the folder view.

When I set a breakpoint in the namespace extension's CreateViewObject method, I can see that when I right click on the folder in the treeview, I get calls with an riid of IID_IDropTarget and IID_IContextMenu. However, when I right click on the folder in the folder view area, I only get a calls with the riid of IID_IDropTarget.

Is there something I need to specify in the registry or in the desktop.ini to properly get the folder view to behave the same way as the tree view?

Note: My definitions of Tree View and Folder View come from the documentation on MSDN.


Aucun commentaire:

Enregistrer un commentaire