https://devblogs.microsoft.com/oldnewthing/20041004-00/?p=37673
How to host an IContextMenu, part 9 - Adding custom commands - The Old New Thing
Oct 4, 2004 - The indexMenu, idCmdFirst and idCmdLast parameters to the IContextMenu::QueryContextMenu method allow you, the host, to control where in the context menu the...
how to host
https://learn.microsoft.com/en-us/windows/win32/shell/how-to-implement-the-icontextmenu-interface
How to Implement the IContextMenu Interface - Win32 apps | Microsoft Learn
IContextMenu is the most powerful but also the most complicated interface to implement.
how to implementinterfaceappsmicrosoftlearn