IContextMenu (Interfaces)
Last changed: -12.170.217.217

.
Summary
This interface is called by the Shell to either create or merge a shortcut menu associated with a Shell object.

C# Definition:

[ComImport]
[Guid("000214e4-0000-0000-c000-000000000046")]
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
interface IContextMenu {
     [PreserveSig] int QueryContextMenu (int hmenu, ushort indexMenu, ushort idCmdFirst, ushort idCmdLast, ushort uFlags) ;
     [PreserveSig] int InvokeCommand (ref CMINVOKECOMMANDINFO lpici) ;
     [PreserveSig] int GetCommandString (UIntPtr idCmd, ushort uType, UIntPtr pwReserved, string pszName, ushort cchMax) ;
}

VB Definition:

<ComImport> _
<Guid("000214e4-0000-c000-0000-000000000046")> _
<InterfaceType(ComInterfaceType.InterfaceIsIUnknown)> _
Interface IContextMenu
   TODO
End Interface

User-Defined Types:

CMINVOKECOMMANDINFO

Notes:

pszName is returned as either Unicode or ASCII based on uType. Windows XP Explorer expects ASCII!

Documentation