Showing posts with label how to get process in c#. Show all posts
Showing posts with label how to get process in c#. Show all posts

Monday, June 6, 2011

how to get process in c#

using System;
using System.Diagnostics;
using System.ComponentModel;
namespace MyProcessSample
{
 /// <summary>
 /// Shell for the sample.
 /// </summary>
 class MyProcess
 {
 
   
 
  void BindToRunningProcesses()
  {
   // Get the current process.
   Process currentProcess = Process.GetCurrentProcess();
  
   // Get all instances of Notepad running on the local
   // computer.
   Process [] localByName = Process.GetProcessesByName("notepad");
  
   // Get all instances of Notepad running on the specifiec
   // computer.
   // 1. Using the computer alias (do not precede with "\\").
   Process [] remoteByName = Process.GetProcessesByName("notepad", "myComputer");
  
   // 2. Using an IP address to specify the machineName parameter.

AngularJS Basics - Part 1

                                                                  AngularJS What is AngularJS ·          Framework by googl...