资源介绍
using System.Diagnostics;
using System.IO;
using System.Windows.Forms;
using System.Threading;
using System.Runtime.InteropServices;
using System.Drawing;
using System.Drawing.Imaging;
namespace remoteClass
{
///
/// 远程监控操作类
///
public class remoteClass:System.MarshalByRefObject
{
public remoteClass()
{
}
#region get、delete 、run process
///
/// 获取当前进程名数组
///
/// 进程名的数组
public string[] getProcessName()
{
//获取执行本组件的本机所以进程数组
Process[] myProcesses=Process.GetProcesses(".");
string[] processNames=new string[myProcesses.Length];
for(int i=0;i {
processNames=myProcesses.ProcessName;
}
return processNames;
}
///
/// 结束指定的进程
///
/// 要结束的进程名称
/// 操作是否成功
.........
.............