Sign in to follow this  
Funkymunky

Shell Extension tutorial?

Recommended Posts

Basically, I'd like to add an entry to the windows explorer context menu. I want to do it in C++, and without the ATL/MFC if possible. I've looked all over for examples of how its done, and all I find is esoteric links into the MSDN library which only seem to describe registry changes, no API calls... Furthermore, I'd like a program that installs the context menu item, and then removes it when its closed. Is that possible, to add/delete while running?

Share this post


Link to post
Share on other sites
The reason the MSDN describes only registry changes and no API calls is because the way you add to the context menu is through registry changes: there are no API calls.

I dont believe whether or not Explorer caches extensions is guaranteed. I believe that for the case of context menus it wont, but this is just a belief about the current state of things. In general, though, changes in shell extensions require Explorer to restart.

Share this post


Link to post
Share on other sites
The simplest way to add an app to the context menu is to just find the File extension under CLASSES, and add a key "Shell->Cmd->Command", with the caption as the default value under "cmd" and the executable path as the default value under "command".

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this