posted in C#, Coders corner, Tools & sources on Jan 6th, 2011
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 using System; using System.Diagnostics; namespace MyProcesses { class MyProcesses { public static void Main() { Process[] lProcList = Process.GetProcesses(); foreach(Process lProc in lProcList) Console.WriteLine("Process: {0} ID: {1}", lProc.ProcessName, lProc.Id); } } [...]
read full post »
posted in C#, Coders corner, Tools & sources on Jan 3rd, 2011
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 using System; using System.Collections; namespace MyEnvironment { class MyEnvironment { public static void Main() { /* * List all environment variables * */ foreach (DictionaryEntry lVar in [...]
read full post »
posted in C#, Coders corner, Tools & sources on Jan 1st, 2011
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 using System; using System.ServiceProcess; using System.Text; namespace MyProcesses { class MyProcesses { static void Main(string[] args) { ServiceController[] lServices = ServiceController.GetServices(); foreach (ServiceController lServcie in ServiceController.GetServices()) { Console.WriteLine("{0} -> [...]
read full post »
posted in C#, Coders corner, Tools & sources on Dec 30th, 2010
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 using System; using System.Collections; namespace MyHashtable { class MyHashtable { public static void Main() { Hashtable lHash = [...]
read full post »
posted in C#, Coders corner, Tools & sources on Dec 27th, 2010
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 using System; using System.Timers; namespace MyTimer { class MyTimer [...]
read full post »