CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Feb 2009
    Location
    Portland, OR
    Posts
    1,488

    Add a program to Open With context menu

    Windows XP, I believe, introduced a very useful context menu option, called, "Open With" when someone clicks on an icon of a certain kind. My question is how to add my own program into that list. (See screenshot attached)
    Attached Images Attached Images  

  2. #2
    GCDEF is offline Elite Member Power Poster
    Join Date
    Nov 2003
    Location
    Florida
    Posts
    12,635

    Re: Add a program to Open With context menu

    RegisterShellFileTypes may do it. I'm not sure though.

  3. #3
    Join Date
    Feb 2009
    Location
    Portland, OR
    Posts
    1,488

    Re: Add a program to Open With context menu

    No, it doesn't do it. This function registers the document type so that I can open it with a double click, but that's not what I'm asking for.

  4. #4
    GCDEF is offline Elite Member Power Poster
    Join Date
    Nov 2003
    Location
    Florida
    Posts
    12,635

    Re: Add a program to Open With context menu

    So, just poking around in the registry under HKEY_CURRENT_USER/Software/Microsoft/Windows/CurrentVersion/Explorer/FileExts you'll find a list of extensions. Under some of them you'll find OpenWithList. You could try adding an entry there.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured