473,387 Members | 1,942 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.

Windows Intergration

Lee
Hi,

How do you integrate an application into windows, for instance right
clicking a file on the desktop or in a folder brings up a menu of things you
can do (delete, rename, send to..) I wish to add my application to this
context menu.

thanks in advance
May 10 '06 #1
4 1308
Hi,
AFAIK this is not an easy task, I'm yet to see an easy way of doing it, all
the posts & scripts I have seen require a good deal of P/invoking
take a look at this article
http://msdn.microsoft.com/library/de...nuhandlers.asp

It's in C++

also search google
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"Lee" <le*****@hotmail.com> wrote in message
news:ud**************@TK2MSFTNGP03.phx.gbl...
Hi,

How do you integrate an application into windows, for instance right
clicking a file on the desktop or in a folder brings up a menu of things
you can do (delete, rename, send to..) I wish to add my application to
this context menu.

thanks in advance

May 10 '06 #2
"Lee" <le*****@hotmail.com> wrote:
How do you integrate an application into windows, for instance right
clicking a file on the desktop or in a folder brings up a menu of things you
can do (delete, rename, send to..) I wish to add my application to this
context menu.


Here's an example. Run regedit. Look at

HKEY_CLASSES_ROOT\.txt
This has the value "txtfile". So, look up

HKEY_CLASSES_ROOT\txtfile\shell\open\command
This has the value "%SystemRoot%\system32\NOTEPAD.EXE %1"

In other words, when the user right-clicks on a .txt file, the context
menu shows the verb "Open". And if the user selects Open, then it
invokes the command-line above (substituting the filename for %1).

You can add your own verbs easily. Just create
HKEY_CLASSES_ROOT\txtfile\shell\MyVerb\command
with appropriate stuff in it.

--
Lucian
May 10 '06 #3
what about assigning a context menu to all file types?
"Lucian Wischik" <lu***@wischik.com> wrote in message
news:m6********************************@4ax.com...
"Lee" <le*****@hotmail.com> wrote:
How do you integrate an application into windows, for instance right
clicking a file on the desktop or in a folder brings up a menu of things
you
can do (delete, rename, send to..) I wish to add my application to this
context menu.


Here's an example. Run regedit. Look at

HKEY_CLASSES_ROOT\.txt
This has the value "txtfile". So, look up

HKEY_CLASSES_ROOT\txtfile\shell\open\command
This has the value "%SystemRoot%\system32\NOTEPAD.EXE %1"

In other words, when the user right-clicks on a .txt file, the context
menu shows the verb "Open". And if the user selects Open, then it
invokes the command-line above (substituting the filename for %1).

You can add your own verbs easily. Just create
HKEY_CLASSES_ROOT\txtfile\shell\MyVerb\command
with appropriate stuff in it.

--
Lucian

May 10 '06 #4
"Tony Clark" <To**@here.com> wrote:
what about assigning a context menu to all file types?


I can't remember offhand. But the relevant MSDN topics are:

Extending Shortcut Menus
Shell Basics

--
Lucian
May 10 '06 #5

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

Similar topics

2
by: Tonino | last post by:
Hi, Just an interested question - I friend is testing a few JAVA intergration bus's that will be used to intergrate his companies services - I was wondering if there was a python intergration...
2
by: Ken Lindner | last post by:
I have a need to become familiar with SQL Server 2000 for work. Needless to say I am new to SQL Server any version, but not IT in general. My employer has provided me with the SQL Server 2000...
4
by: Hawkmoth | last post by:
Hi I hope you can help with what seems to be a simple problem that is driving me nuts! I am developing a C# application using Visual studio 2003 and I need to use Office 2003 automation. In...
20
by: Moty Michaely | last post by:
Hello, Can anyone please help me finding a good way to develop a c# winforms application client for a pre-developed windows service? Should I use wse2 with tcp protocol? Bu I still have win98...
1
by: Scott Davies | last post by:
Hi, I'm looking for some help on a small program that I'm trying to develop in VB.NET. I'm having trouble getting the code that I've written to work, can anyone shed some light as to where I'm...
0
by: Scott Davies | last post by:
Hi, I'm looking for some help on a small program that I'm trying to develop in VB.NET. The program I'm trying to develop needs to be able to do the following: - Select remote server -...
4
by: Rod Gill | last post by:
Hi, I have a form that when opened in the designer appears of the screen. The form selector can't be dragged (or resized) and if I scroll right and down to centralise it the form simply jumps...
4
by: Gamool | last post by:
i'm a webmaster & i have a website i'm uploading a mp3 files on my directoreis and my links are stolen everywhere i'm using vb 3.5.4 i need any something to block this stealers from stealing...
69
by: Jack Dowson | last post by:
Hello Everybody: I'm learning c now.I think it's really a tedious job following my textbook to write programs which are used to deal with math problems.I want to write some codes related with...
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: 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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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.