winform编程求助
--------------------编程问答-------------------- 有个process类的,自己查下msdn. --------------------编程问答-------------------- Process.GetCurrentProcess()--------------------编程问答-------------------- var currentThread=Thread.CurrentThread; --------------------编程问答-------------------- 2楼正确,pid可以看Id属性:
--------------------编程问答--------------------
Process p = Process.GetCurrentProcess();
int pid = p.Id;
Process process = Process.GetCurrentProcess();
MessageBox.Show("当前进程名称为"+process.Name+",Id为"+process.Id);
补充:.NET技术 , C#