Ignore:
Timestamp:
12/5/2008 4:37:43 AM (6 years ago)
Author:
lowjoel
Message:

Defined a GetHKeyPath function which translates the HKEY parameter from IShellExtInit::Initialize to a registry key name. This marks the beginning of us allowing our shell extension to be integrated into the Explorer Recycle Bin context menu (okay, it's a little hackish, but let's see how it plays out. All that I needed was a debugger into the shell extension, no other hacks :P)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eraser6/ShellExt/CtxMenu.h

    r711 r715  
    4949        } 
    5050 
     51        /// The place where the context menu extension was invoked. 
     52        enum InvokeReasons 
     53        { 
     54            INVOKEREASON_FILEFOLDER, 
     55            INVOKEREASON_DRAGDROP, 
     56            INVOKEREASON_RECYCLEBIN 
     57        }; 
     58 
    5159        enum CEraserLPVERBS 
    5260        { 
     
    7583        CEraserLPVERBS GetApplicableActions(); 
    7684 
     85        static std::wstring GetHKeyPath(HKEY handle); 
    7786        static MENUITEMINFO* GetSeparator(); 
    7887        static HICON GetMenuIcon(); 
     
    8190 
    8291    protected: 
     92        InvokeReasons InvokeReason; 
     93 
    8394        UINT        m_itemID; 
    8495        string_list m_szSelectedFiles; 
Note: See TracChangeset for help on using the changeset viewer.