"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