Windows Dev Center

how to enable copy/paste functionality in a shell namespace extension ?


  • 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?


    Freitag, 15. Juni 2012 15:11


  • For the class which represents your items, you should override IShellItem::GetAttributes and make sure you put the following items among the return attributes: 


    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:

    Montag, 9. Juli 2012 14:08