Registering 32 bit DLL for context menu on 64 bit Windows

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • paragpdoke
    New Member
    • Dec 2007
    • 62

    Registering 32 bit DLL for context menu on 64 bit Windows

    Hello Everyone.
    I am new to Windows programming / registry settings and I need help regarding setting a context menu. Allow me to provide details.

    - There is a DLL written in C++ which somehow is able to display a "MyApp" menu when I right click any file. I am not sure how it displays the menu (not owned by me).
    - The programming language I used to register the content menu handler is VB.NET. I have code that creates a new key:
    Code:
    HKCU\Software\Classes\*\shellex\ContextMenuHandlers\MyApp\{CLSID of the C++ DLL}
    - Both the C++ DLL and the VB.NET exe are compiled to run on x86. So they are expected to run on the 64 bit OS under WOW mode.

    I have 2 questions in this regard:
    1) Should the VB.NET code be creating the menu handler under:
    Code:
    HKCU\Software\Classes\Wow6432Node\*\shellex\ContextMenuHandlers\
    Instead of
    Code:
    HKCU\Software\Classes\*\shellex\ContextMenuHandlers\
    ?

    2) Does the CLSID for the 32 bit DLL get saved under:
    Code:
    HKCR\Wow6432Node\MyApp\CLSID
    on a 64 bit system ?

    - Both the registering and the context menu work fine on 32 bit systems. I am only trying to make it work on 64 bit.
    - The 64 bit OSes in question are Windows XP and Windows Vista [in future I might need Windows 7 64 bit too].

    If more information is needed, please let me know.
    Can someone please help me with this ? Links/pointers to existing articles will also be helpful.

    Thanks in advance,
    Parag Doke
  • paragpdoke
    New Member
    • Dec 2007
    • 62

    #2
    Has anyone got any pointers for my question ?

    Comment

    Working...