using SystemDiagnostics;
string str = "";
Process[] processes;
//Get the list of current active processes
processes = SystemDiagnosticsProcessGetProcesses();
//Grab some basic information for each process
Process process;
for(int i = 0;i<processesLength-1;i++)
{
process = processes[i];
str = str + ConvertToString(processId) + " : " +
processProcessName + "\r\n";
}
//Display the process information to the user
SystemWindowsFormsMessageBoxShow(str);
以上就是关于求教C#如何获取自身进程ID全部的内容,包括:求教C#如何获取自身进程ID、、等相关内容解答,如果想了解更多相关内容,可以关注我们,你们的支持是我们更新的动力!
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)