标签:tar size 通过 get post url tle thread htm
方法1 通过进程名获取
Process[] processes = Process.GetProcesses(); foreach(Process process in processes) { if(process.ProcessName == "进程名" { MessageBox.Show(process.Id); } }
方法2 直接获取
Process processes = Process.GetCurrentProcess processes.id // 获得当前进程的ID
方法1 推荐
Thread.CurrentThread.ManagedThreadId
方法2
AppDomain.GetCurrentThreadId()
标签:tar size 通过 get post url tle thread htm
原文地址:https://www.cnblogs.com/arxive/p/10102175.html