470,818 Members | 1,613 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,818 developers. It's quick & easy.

Context Menu Shell Extension problem

Hi everyone,
I used the pattern for Shell Extensions for Context menu from Dino
Esposito's article. However I implemented it in more than one application
and it seems that those two right click functionalities cannot work
together.
void IContextMenu.InvokeCommand (IntPtr pici)

I put more debugging information and I noticed that the two assemblies are
using a common value. I haved changed their namespaces and guids to be
different but still I am getting the same value.

How do I resolve this.

Aldwin
Dec 12 '07 #1
3 4873
Another thing that I noticed here is that other context menu are not working
too. An example is the OpenWith menu. Before it displays the different
application where you can open a file but now it displays "Open With" text
inside the Open With context menu.

How is this happening?

"Poggs" <ae*******@narrasoft.comwrote in message
news:et*************@TK2MSFTNGP06.phx.gbl...
Hi everyone,
I used the pattern for Shell Extensions for Context menu from Dino
Esposito's article. However I implemented it in more than one application
and it seems that those two right click functionalities cannot work
together.
void IContextMenu.InvokeCommand (IntPtr pici)

I put more debugging information and I noticed that the two assemblies are
using a common value. I haved changed their namespaces and guids to be
different but still I am getting the same value.

How do I resolve this.

Aldwin


Dec 13 '07 #2
Additional Information
I added some debugging information and I noticed that the IDCmdFirst value
is higher than the idCmdLast.
First application generates
[2228] Initializing Shell Extensions
[2228] pidlFolder : 0
[2228] lpdobj : 22245384
[2228] hKeyProgID : 2454
[2228] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> >
[2228] Query Context Menu
[2228] hMenu : 366805703
[2228] iMenu : 0
[2228] icmdFirst : 31092
[2228] idcmdLast : 31226
[2228] uFlags : 131088
[2228] hmnuPopup : 7538337
[2228] m_hDrop : 83582664

Second application generates this

[2228] Initializing Shell Extensions
[2228] pidlFolder : 0
[2228] lpdobj : 22245384
[2228] hKeyProgID : 2454
[2228] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> >
[2228] Query Context Menu
[2228] hMenu : 366805703
[2228] iMenu : 0
[2228] icmdFirst : 62289
[2228] idcmdLast : 31226
[2228] uFlags : 131088
[2228] hmnuPopup : 34145945
[2228] m_hDrop : 1094128

Also noticed that they both have the same uflags..

But both context menu extensions are working fine if only one of them are
installed in the machine.

"Poggs" <ae*******@narrasoft.comwrote in message
news:ui*************@TK2MSFTNGP06.phx.gbl...
Another thing that I noticed here is that other context menu are not
working too. An example is the OpenWith menu. Before it displays the
different application where you can open a file but now it displays "Open
With" text inside the Open With context menu.

How is this happening?

"Poggs" <ae*******@narrasoft.comwrote in message
news:et*************@TK2MSFTNGP06.phx.gbl...
>Hi everyone,
I used the pattern for Shell Extensions for Context menu from Dino
Esposito's article. However I implemented it in more than one application
and it seems that those two right click functionalities cannot work
together.
void IContextMenu.InvokeCommand (IntPtr pici)

I put more debugging information and I noticed that the two assemblies
are using a common value. I haved changed their namespaces and guids to
be different but still I am getting the same value.

How do I resolve this.

Aldwin



Dec 13 '07 #3
Issue Fixed....
Problem is the idCMDFirst and idcmdLast values being messed up..

"Poggs" <ae*******@narrasoft.comwrote in message
news:eo**************@TK2MSFTNGP02.phx.gbl...
Additional Information
I added some debugging information and I noticed that the IDCmdFirst value
is higher than the idCmdLast.
First application generates
[2228] Initializing Shell Extensions
[2228] pidlFolder : 0
[2228] lpdobj : 22245384
[2228] hKeyProgID : 2454
[2228] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> >
[2228] Query Context Menu
[2228] hMenu : 366805703
[2228] iMenu : 0
[2228] icmdFirst : 31092
[2228] idcmdLast : 31226
[2228] uFlags : 131088
[2228] hmnuPopup : 7538337
[2228] m_hDrop : 83582664

Second application generates this

[2228] Initializing Shell Extensions
[2228] pidlFolder : 0
[2228] lpdobj : 22245384
[2228] hKeyProgID : 2454
[2228] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> >
[2228] Query Context Menu
[2228] hMenu : 366805703
[2228] iMenu : 0
[2228] icmdFirst : 62289
[2228] idcmdLast : 31226
[2228] uFlags : 131088
[2228] hmnuPopup : 34145945
[2228] m_hDrop : 1094128

Also noticed that they both have the same uflags..

But both context menu extensions are working fine if only one of them are
installed in the machine.

"Poggs" <ae*******@narrasoft.comwrote in message
news:ui*************@TK2MSFTNGP06.phx.gbl...
>Another thing that I noticed here is that other context menu are not
working too. An example is the OpenWith menu. Before it displays the
different application where you can open a file but now it displays "Open
With" text inside the Open With context menu.

How is this happening?

"Poggs" <ae*******@narrasoft.comwrote in message
news:et*************@TK2MSFTNGP06.phx.gbl...
>>Hi everyone,
I used the pattern for Shell Extensions for Context menu from Dino
Esposito's article. However I implemented it in more than one
application and it seems that those two right click functionalities
cannot work together.
void IContextMenu.InvokeCommand (IntPtr pici)

I put more debugging information and I noticed that the two assemblies
are using a common value. I haved changed their namespaces and guids to
be different but still I am getting the same value.

How do I resolve this.

Aldwin




Dec 18 '07 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by yxq | last post: by
2 posts views Thread by elziko | last post: by
5 posts views Thread by lgbjr | last post: by
reply views Thread by eisbaer | last post: by
2 posts views Thread by Martin Carpella | last post: by
2 posts views Thread by auad | last post: by
reply views Thread by mihailmihai484 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.