Add Item to the Desktop RightClick Menu !

night_prince

Member
Joined
Dec 17, 2006
Messages
24
Programming Experience
Beginner
Hi every body,
how can i add an item to the menu that shown when you click with the right button on the desktop ?
 
See this and related: http://samanathon.com/windows-hacks-improve-the-context-menu-part-4/
There are lots of things you can do with context menu for different objects in Windows, all customizable with registry settings. There are much info on web for this, it is something people have been doing since the first Windows OS.

With .Net 2.0 you can do registry with My.Computer.Registry
 
Sorry for being late.

thanks john, but the website that you posted describes how to add an item to the all files and folders,but not the right click on the desktop.

anyway i tried the solution and they are tring just to add a class that already exists in windows ( the CopyTo )

they are just adding the ClassID to the context menu

but my question is how to creat a new class and add it the menu?

i tried this :

i made a key in the
HKEY_Classes_Root\CLSID\
such as : {FFF88CAE-608A-474F-B171-905EE12C97C7}

of course i took one of the exisiting Classes and changed one letter.

and then i made a key inside that Class id like this :

HKEY_Classes_Root\CLSID\{FFF88CAE-608A-474F-B171-905EE12C97C7}\shell\open\command

and changed the default value of the command to something like :

Calc.exe

now it is supposed that if i add this class id to the context menu i must have i a new item that open the calculator.


i tried to add this class id to my computer and it works

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion
\Explorer\MyComputer\NameSpace\
{FFF88CAE-608A-474F-B171-905EE12C97C7}

i know that it's different to add an icon to the desktop or to my computer
and i noticed that some company such as nvidea add an item to desktop menu and it was in the key:

HKEY_CLASSES_ROOT\Directory\Background\shellex
\ContextMenuHandlers\NvCplDesktopContext

and the value is:

"{A70C977A-BF00-412C-90B7-034C51DA2439}

and if we look for this value we will find :

{A70C977A-BF00-412C-90B7-034C51DA2439}
|-InprocServer32
|-ProgID
|-Programmable
|-TypeLib
|-VersionIndependentProgID


and the InprocServer32 contain a name of dll file
C:\WINDOWS\system32\nvcpl.dll

the question is what does this file contain??
and how to make one??

:)
:confused:
 
I've done a few web searches but have not been able to find the specific registry settings needed for a context menu that doesn't regard any specific context, ie the empty desktop alone. Usually it is for context of all files or all folder or both or specific files. It is possible to add menu choice for desktop I've seen that, but have not researched registry for that, and as I said no apparent web articles explaining this showed up on my search. Continue your search/research and post back if you find any good.
 
Back
Top