it fails on theprocess.StartTime.
"Win32Exception. Access is denied"
I am administrator. so dont understand why I got the message.
using System;
using System.Collections.Generic;
using System.Text;
using System.Diagnostics;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
Process[] processlist = Process.GetProcesses();
foreach(Process theprocess in processlist)
{
Console.WriteLine("{0}: {1}: {2}", theprocess.ProcessName, theprocess.Id, theprocess.StartTime);
}
Console.ReadKey();
}
}
}
"Win32Exception. Access is denied"
I am administrator. so dont understand why I got the message.
using System;
using System.Collections.Generic;
using System.Text;
using System.Diagnostics;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
Process[] processlist = Process.GetProcesses();
foreach(Process theprocess in processlist)
{
Console.WriteLine("{0}: {1}: {2}", theprocess.ProcessName, theprocess.Id, theprocess.StartTime);
}
Console.ReadKey();
}
}
}