ShellAPI.CMINVOKECOMMANDINFOEX invoke = new ShellAPI.CMINVOKECOMMANDINFOEX(); invoke.cbSize = ShellAPI.cbInvokeCommand; invoke.lpVerb = (IntPtr)cmd; invoke.lpDirectory = parentDir; invoke.lpVerbW = (IntPtr)cmd; invoke.lpDirectoryW = parentDir; invoke.fMask = ShellAPI.CMIC.UNICODE | ShellAPI.CMIC.PTINVOKE | ((Control.ModifierKeys & Keys.Control) != 0 ? ShellAPI.CMIC.CONTROL_DOWN : 0) | ((Control.ModifierKeys & Keys.Shift) != 0 ? ShellAPI.CMIC.SHIFT_DOWN : 0); invoke.ptInvoke = new ShellAPI.POINT(ptInvoke.X, ptInvoke.Y); invoke.nShow = ShellAPI.SW.SHOWNORMAL; iContextMenu.InvokeCommand(ref invoke);
invoke.nShow = ShellAPI.SW.SHOWNORMAL;
SHOWDIALOG
SHOWNORMAL
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)