C#列出当前系统所有正在运行的程序

c#
2015-07-09 0 179
C#列出当前系统所有正在运行的程序

C#列出当前系统所有正在运行的程序

Using System.Diagnostics;
  
foreach (Process p in Process.GetProcesses (System.Environment.MachineName))
{
    if (p.MainWindowHandle! = IntPtr.Zero)
    {
        // Display the user name of the program
        Console.WriteLine (p); / / string s = p.ToString ();
    }
}

遇见资源网 c# C#列出当前系统所有正在运行的程序 http://www.ox520.com/12760.html

常见问题

相关文章

发表评论
暂无评论
官方客服团队

为您解决烦忧 - 24小时在线 专业服务