How do I make it so copy and paste are enabled and handled by the shell namespace extension I am writing? The extension I have is working in the center panel in windows explorer. What do I do to make it so when a file or folder in the namespace is selected the copy/paste options on the file menu are enabled?
For the class which represents your items, you should override IShellItem::GetAttributes and make sure you put the following items among the return attributes:SFGAO_CANCOPY | SFGAO_CANMOVE
And in the folder containing the items you should override IShellFolder::GetAttributesOf method, and put SFGAO_DROPTARGET in the result attributes.
You can find more details in the following links: