Jump to content
  • Advertisement
Sign in to follow this  
Funkymunky

Shell Extension tutorial?

This topic is 3753 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
Advertisement
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
well, ok how about this? A Context Menu Handler seems to be exactly what I'm looking for, but every example I find uses the ATL, MFC. Is there a way to do it just straight API?

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
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!