[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) ;
}
<ComImport> _
<Guid("000214e4-0000-c000-0000-000000000046")> _
<InterfaceType(ComInterfaceType.InterfaceIsIUnknown)> _
Interface IContextMenu
TODO
End Interface
pszName is returned as either Unicode or ASCII based on uType. Windows XP Explorer expects ASCII!