Connecting Tech Pros Worldwide Forums | Help | Site Map

Registering 32 bit DLL for context menu on 64 bit Windows

Member
 
Join Date: Dec 2007
Location: Pune, India
Posts: 46
#1: Sep 19 '09
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:
Expand|Select|Wrap|Line Numbers
  1. HKCU\Software\Classes\*\shellex\ContextMenuHandlers\MyApp\{CLSID of the C++ DLL}
  2.  
- 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:
Expand|Select|Wrap|Line Numbers
  1. HKCU\Software\Classes\Wow6432Node\*\shellex\ContextMenuHandlers\
  2.  
Instead of
Expand|Select|Wrap|Line Numbers
  1. HKCU\Software\Classes\*\shellex\ContextMenuHandlers\
  2.  
?

2) Does the CLSID for the 32 bit DLL get saved under:
Expand|Select|Wrap|Line Numbers
  1. HKCR\Wow6432Node\MyApp\CLSID
  2.  
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

Member
 
Join Date: Dec 2007
Location: Pune, India
Posts: 46
#2: Sep 25 '09

re: Registering 32 bit DLL for context menu on 64 bit Windows


Has anyone got any pointers for my question ?
Reply

Tags
context menu


Similar Microsoft Windows / Vista / XP / ME / 95 & 98 bytes