Trying to create a generic shell context menu extension

Hi,

I'm developing a small file encryption program, and I was able to add a shell extension to decrypt files, as the installation package (within VS2005) offered the option to create a filetype, with associated icon and command ( launches the application, with the /d (decrypt) parameter, and the filename). Nice.

But, what I would like to do, is create a shell extension, that displays for any file (except .s5 ones, if possible) - I guess using the * extension, a context menu which offers encryption of the file (simply launches the application with /e parameter and the filename).

I've found documents on the MSDN built-in documentation, but am not very familiar with C++, and so I'd like to understand how :

  • it could be done with VC#, if not dangerous (as I saw in another thread, it was said potentially dangerous), or,
  • i could simply do this, as I don't need any complex shell functions really, just to start my main program.

Thanks in advance for any answers,




Answer this question

Trying to create a generic shell context menu extension

  • Azra

    Yep that's what I mentioned, so is there a simple way, when you know only the C++ very basics, to do an extension as I stated I really need to know and haven't found an answer I was able to understand so well : there was a sample on CodeGuru but it was more of a complete app sample, and I didn't know what to choose to keep or not....

  • MattiasO

    It's not a good idea, see the following:

    http://blogs.msdn.com/junfeng/archive/2005/11/18/494572.aspx



  • Trying to create a generic shell context menu extension