none
How can I write managed shell extension in .NET 4

Answers

  • I hear your frustration in researching how to write shell extension with .NET 4. My team has a code sample project called Microsoft All-In-One Code Framework. Its code samples target programming tasks that are frequently asked by developers. The team is working on a series of .NET 4 managed Shell extension code samples for Context Menu Handler, Property Sheet Handler, Icon handler, Data handler, Drop handler, Drag-and-drop handler, Thumbnail Handler, Icon Handler, Icon Overlay Handler, and so on. In the September release of the project, they provided the first batch of managed shell extension samples. You can download them from http://1code.codeplex.com/releases/. More will be provided in the future releases.

     

    CSShellExtContextMenuHandler  Shell context menu handler (C#)

    VBShellExtContextMenuHandler  Shell context menu handler (VB.NET)

    CppShellExtContextMenuHandler  Shell context menu handler (C++) 

     

    Please let me know if these code samples are helpful you.


    Sincerely,
    Eric
    MSDN Subscriber Support in Forum
    If you have any feedback of our support, please contact msdnmg@microsoft.com.
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.

     

    • Marked as answer by Dev.eloper Wednesday, September 15, 2010 6:23 AM
    • Edited by eryang Thursday, September 16, 2010 12:58 AM
    Wednesday, September 15, 2010 3:39 AM

All replies

  •  

    Hi,

     

    I'm not familiar with Shell Programming in .NET, I just found some articles on this topic as following, hope they can helps:

     

    Explorer column handler shell extension in C#

    C# does Shell, Part 1

    C# does Shell, Part 4


    Sincerely,
    Eric
    MSDN Subscriber Support in Forum
    If you have any feedback of our support, please contact msdnmg@microsoft.com.
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
    Monday, September 13, 2010 9:29 AM
  • The first article does not target .NET 4. Column handler is also removed from Windows Vista.

    The rest two articles are not about shell extension development.

    Tuesday, September 14, 2010 1:00 AM
  • I hear your frustration in researching how to write shell extension with .NET 4. My team has a code sample project called Microsoft All-In-One Code Framework. Its code samples target programming tasks that are frequently asked by developers. The team is working on a series of .NET 4 managed Shell extension code samples for Context Menu Handler, Property Sheet Handler, Icon handler, Data handler, Drop handler, Drag-and-drop handler, Thumbnail Handler, Icon Handler, Icon Overlay Handler, and so on. In the September release of the project, they provided the first batch of managed shell extension samples. You can download them from http://1code.codeplex.com/releases/. More will be provided in the future releases.

     

    CSShellExtContextMenuHandler  Shell context menu handler (C#)

    VBShellExtContextMenuHandler  Shell context menu handler (VB.NET)

    CppShellExtContextMenuHandler  Shell context menu handler (C++) 

     

    Please let me know if these code samples are helpful you.


    Sincerely,
    Eric
    MSDN Subscriber Support in Forum
    If you have any feedback of our support, please contact msdnmg@microsoft.com.
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.

     

    • Marked as answer by Dev.eloper Wednesday, September 15, 2010 6:23 AM
    • Edited by eryang Thursday, September 16, 2010 12:58 AM
    Wednesday, September 15, 2010 3:39 AM
  • Hi Eric

    Thanks a million! I have studied lots of documentations for two days in vain. Your code samples make my pain go away. I look forward to more and more shell extension code samples released from your wonderful code framework.

    Wednesday, September 15, 2010 6:23 AM
  • However, at present, managed shell extension is not supported (neither .NET 2.0/3.0/3.5 nor .NET 4.0), even though the In-process SxS brings the possibility.
    Eric Yang [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Wednesday, January 05, 2011 1:17 AM
  • Thanks for the awesome 1code framework. Sadly, I see the "Extend known folders with custom folders" (mentioned in the CSShellKnownFolders example) sample is still a "TODO" - is there an update coming which will include this sample?

     

    Monday, March 07, 2011 1:33 PM
  • For anyone visiting this post for information on shell extensions written in .NET, I've put together some examples here:

    Shell Context Menus: http://www.codeproject.com/Articles/512956/NET-Shell-Extensions-Shell-Context-Menus

    Shell Icon Handlers: http://www.codeproject.com/Articles/522665/NET-Shell-Extensions-Shell-Icon-Handlers

    Also, there's an open source project named 'SharpShell' that provides a robust framework for building managed shell extensions, you can find the project at http://sharpshell.codeplex.com.

    • Proposed as answer by DaveKerr Thursday, January 10, 2013 11:17 AM
    Thursday, January 10, 2013 11:17 AM