By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,890 Members | 1,261 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,890 IT Pros & Developers. It's quick & easy.

Explorer ShellExtension ContextMenu Handler...

P: n/a
Ok,

I've been pulling my hair out for hours now :( I know I've asked this
previously, but the question has now changed slightly and taken on a new
direction...:

I'm looking for a coded example (there are a few on the internet, but
documentation is utterly horrendous!), preferably in VB.NET, or VB6 or C#
(preference in this order) to allow me to create context menus dynamically
at runtime when the user right clicks a file (or set of files) or a folder
in explorer (or on the desktop).

I'm attempting to mimic the operation of utilities such as Winzip, and CD
burning style utilities.

I've got as far as putting a key in the registry at:
HKCR\*\ShellEx\ContextMenuHandler, with a REG_SZ value holding the GUID of
my created COM .dll CLSID (Now here's a problem for you - I want this in
..NET, but can only create in COM??).

However where I go from here, I have no idea! I've seen all manner of
examples creating a single entry in the context menu - but nothing with
submenus. Nothing in .NET with any code comments and documentation.

Has anyone done this, could you proffer some advice please? There's nowt out
there, so some original thought is required into the Shell/Win32 API!

Warmest Regards!

Mike

XPosted to: dotnet.general, dotnet.languages.vb, vb classic
..general.discussion (pertinent to all three, thanks).

--
Mike Wilson
Evolved Software Studios Ltd
www.evolvedsoftwarestudios.com
Nov 21 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Hi,

Maybe this will help

http://msdn.microsoft.com/msdnmag/is...l/default.aspx

Ken
----------
"Mike Wilson" <info-at-remove-the-obvious-evolvedsoftwarestudios.com> wrote
in message news:42***********************@ptn-nntp-reader01.plus.net...
Ok,

I've been pulling my hair out for hours now :( I know I've asked this
previously, but the question has now changed slightly and taken on a new
direction...:

I'm looking for a coded example (there are a few on the internet, but
documentation is utterly horrendous!), preferably in VB.NET, or VB6 or C#
(preference in this order) to allow me to create context menus dynamically
at runtime when the user right clicks a file (or set of files) or a folder
in explorer (or on the desktop).

I'm attempting to mimic the operation of utilities such as Winzip, and CD
burning style utilities.

I've got as far as putting a key in the registry at:
HKCR\*\ShellEx\ContextMenuHandler, with a REG_SZ value holding the GUID of
my created COM .dll CLSID (Now here's a problem for you - I want this in
..NET, but can only create in COM??).

However where I go from here, I have no idea! I've seen all manner of
examples creating a single entry in the context menu - but nothing with
submenus. Nothing in .NET with any code comments and documentation.

Has anyone done this, could you proffer some advice please? There's nowt out
there, so some original thought is required into the Shell/Win32 API!

Warmest Regards!

Mike

XPosted to: dotnet.general, dotnet.languages.vb, vb classic
..general.discussion (pertinent to all three, thanks).

--
Mike Wilson
Evolved Software Studios Ltd
www.evolvedsoftwarestudios.com

Nov 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.