示例#1
0
 private void toolStripMenuItem1_Click(object sender, EventArgs e)
 {
     try
     {
         if (processModuleListView.SelectedItems.Count == 1)
         {
             ListViewItem  listViewItem  = processModuleListView.SelectedItems[0];
             ProcessModule processModule = listViewItem.Tag as ProcessModule;
             if (processModule != null)
             {
                 NativeMethods.SHELLEXECUTEINFO info = new NativeMethods.SHELLEXECUTEINFO();
                 info.cbSize = System.Runtime.InteropServices.Marshal.SizeOf(info);
                 info.lpVerb = "properties";
                 info.lpFile = processModule.FileName;
                 info.nShow  = NativeMethods.SW_SHOW;
                 info.fMask  = NativeMethods.SEE_MASK_INVOKEIDLIST;
                 NativeMethods.ShellExecuteEx(ref info);
             }
         }
     }
     catch
     {
     }
 }
 private void toolStripMenuItem1_Click(object sender, EventArgs e)
 {
     try
     {
         if (processModuleListView.SelectedItems.Count == 1)
         {
             ListViewItem listViewItem = processModuleListView.SelectedItems[0];
             ProcessModule processModule = listViewItem.Tag as ProcessModule;
             if (processModule != null)
             {
                 NativeMethods.SHELLEXECUTEINFO info = new NativeMethods.SHELLEXECUTEINFO();
                 info.cbSize = System.Runtime.InteropServices.Marshal.SizeOf(info);
                 info.lpVerb = "properties";
                 info.lpFile = processModule.FileName;
                 info.nShow = NativeMethods.SW_SHOW;
                 info.fMask = NativeMethods.SEE_MASK_INVOKEIDLIST;
                 NativeMethods.ShellExecuteEx(ref info);
             }
         }
     }
     catch
     {
     }
 }