Order in the context menu of Windows Explorer

How to change the order of entries in the context menu? (e.g. for directories) I need to know how Windows determines the order in which it is displayed so that I can control it. For example, I want to place my custom action at the end of the context menu list

Thanks in advance!

+5
source share
4 answers

My google-fu led me to this :

Thus, sorting is based on the following elements in the order of decision-making:

  • Primary priority (e.g. txtfile, *, AFSO)
  • Enumeration order of the shellex \ contextmenuhandlers registry with a special case for static verbs that are always the first
  • IContextMenu

, - , , .

, 1. 3 , . 2. , , ContextMenuHandlers, , - .

+7

Windows 7, , . , .

"*" ( ), .

, !

, ( @Anonymouse)

:

2 - Default menu position (at the top).
1 - Send to, copy to folder and move to folder menu part (in the middle).
0 - Rename menu part (at the bottom).

@Luke
"" - HKCR-*-shell HKCR-*-shellex. shell shellex. , CLSID , , .

MSDN . CLSID shellex, " " - . "" 2 ( ). - Asample CLSID. shell.

.

shell Position Top Bottom. , "".

shellex Position . , "" flags, .

  • CLSID , . {XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}. , , , .
  • HKCR-CLSID, CLSID.
  • flags DWORD , , CLSID.
+2

All Articles