Example #1
0
        void InvokeCommand(int index)
        {
            const int SW_SHOWNORMAL            = 1;
            CMINVOKECOMMANDINFO_ByIndex invoke = new CMINVOKECOMMANDINFO_ByIndex();

            invoke.cbSize = Marshal.SizeOf(invoke);
            invoke.iVerb  = index;
            invoke.nShow  = SW_SHOWNORMAL;
            try
            {
                comInterface2.InvokeCommand(ref invoke);
            }
            catch (Exception ex)
            {
                // Breakpoint
                this.LastError = ex;
            }
        }
Example #2
0
 int IContextMenu2.InvokeCommand(ref CMINVOKECOMMANDINFO_ByIndex pici)
 {
     return(WinError.E_NOTIMPL);
 }