473,387 Members | 1,812 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

ContextMenuHandlers - adding to Windows shell

If you ever installed WinZip on Windows XP you would notice that when you
right-click on a folder there is a new WinZip entry on the context menu and
it has it's own submenu with a whole bunch of options.

I would like to try something like this for a small utility program I am
writing. Looking in the registry I see that WinZip registered itself as a
ContextMenuHandler under
HKEY_CLASSES_ROOT\Directory\shellex\ContextMenuHan dlers. But under the WinZip
Key there is a Binary Value with a long String that looks like some code or
ID.

What does this ID mean and how would I go about replicating what WinZip does
with my own C# program?
Oct 3 '06 #1
2 5532

MrNobody wrote:
If you ever installed WinZip on Windows XP you would notice that when you
right-click on a folder there is a new WinZip entry on the context menu and
it has it's own submenu with a whole bunch of options.

I would like to try something like this for a small utility program I am
writing. Looking in the registry I see that WinZip registered itself as a
ContextMenuHandler under
HKEY_CLASSES_ROOT\Directory\shellex\ContextMenuHan dlers. But under the WinZip
Key there is a Binary Value with a long String that looks like some code or
ID.

What does this ID mean and how would I go about replicating what WinZip does
with my own C# program?
I've not tried this, but I remember looking at this a while a go:
http://www.codeproject.com/csharp/SimpleContextMenu.asp

Oct 3 '06 #2

MrNobody wrote:
If you ever installed WinZip on Windows XP you would notice that when you
right-click on a folder there is a new WinZip entry on the context menu and
it has it's own submenu with a whole bunch of options.

I would like to try something like this for a small utility program I am
writing. Looking in the registry I see that WinZip registered itself as a
ContextMenuHandler under
HKEY_CLASSES_ROOT\Directory\shellex\ContextMenuHan dlers. But under the WinZip
Key there is a Binary Value with a long String that looks like some code or
ID.

What does this ID mean and how would I go about replicating what WinZip does
with my own C# program?
To answer the specific question which I sort of glossed over ;) It's
the COM object that implements IContextMenu and IShellExtInt. If you
search for it in the registry it will eventually point to a DLL which
will be part of the winzip dist. I don't have it installed on this
laptop so I can't give an exact name.

If you're interested, look up COM interop in google, or one of the
interop tutorials on Codeproject.

Oct 3 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Ben Dewey | last post by:
Project: ---------------------------- I am creating a HTTPS File Transfer App using ASP.NET and C#. I am utilizing ActiveDirectory and windows security to manage the permissions. Why reinvent...
3
by: Simon Jefferies | last post by:
Hello, How do I add an entry to the Windows Recent Documents list during the execution of a windows app? In MFC you could call a function in the Shell library from my memory. Is there a .NET...
2
by: Landen | last post by:
I am wanting to replicate a linux feature that I can't seem to find anywhere in windows as an addin or program. If anyone is familiar with linux, if you right click on a folder or file, you get the...
6
by: Mike Wilson | last post by:
Dear All, I am attempting to create a "Winzip" style interface (dynamic explorer shellex context menu). However, after several >hours< of searching and trialling - MSDN, SDK, etc, etc - I...
2
by: Thief_ | last post by:
I'd like to explorer how to add my own menu items to the Explorer right-click menu. That is, if a user, say, right-clicks a txt file, I want to launch MY application to process that file. Are...
1
by: sri2097 | last post by:
Basically, I want to check if a URL is playable or not (without actually playing it). i.e. given a URL I want to write an automation script to figure it out for me if it's playable or not. If...
6
by: =?Utf-8?B?QnJhZA==?= | last post by:
VS,VB 2005 I have a treeview which i load data into in the forms load event Adding Nodes and Children to the parent nodes works fine to add a parent:...
1
by: Tim Haughton | last post by:
Firstly, if there's a better newsgroup to ask this on, feel free to redirect me. I have these requirements of WDS for a project: 1) I need to be able to add a new location to the user scope...
0
by: sony.m.2007 | last post by:
Hi, I'm trying to add a contextmenu(adding my custom context menu) to windows explorer. This context menu has to be shown for all files and folder Th new context menu will be like this ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.