zoukankan      html  css  js  c++  java
  • 获取进程信息

    1。获取进程Id,进程名字。

    代码
              using System.Diagnostics;
                //获取电脑当前运行的进程
                Process[] myProcesses;
                //Get the list of current active processes.
                myProcesses = System.Diagnostics.Process.GetProcesses();
                //Grab some basic information for each process.
                Process myProcess;
                int pId;
                string pName;
                int pCount = myProcesses.Length;
                for (int i = 0; i < pCount; i++)
                {
                    myProcess = myProcesses[i];
                    pId = myProcess.Id;
                    pName = myProcess.ProcessName;                           
                }           
  • 相关阅读:
    1.Android 视图及View绘制分析笔记之setContentView
    Android 6.0
    include、merge 、ViewStub
    Vitamio视频播放器
    EventBus 二
    EventBus 一
    ZJOI2002 昂贵的聘礼
    [POI2009]WIE-Hexer
    UVA 11440 Help Tomisu
    洛谷 2448 无尽的生命
  • 原文地址:https://www.cnblogs.com/ike_li/p/1788719.html
Copyright © 2011-2022 走看看