T
Tony Johansson
Hi!
When I run this program I saw that my current application was called
ProcessExample.vshost.
I was surprised over that this vshost was part of the processname.
I have thought that the application would have been called just
ProcessExample without this vshost.
So my question is why is the process of the application is called
ProcessExample.vshost and not
just ProcessExample ?
static void Main(string[] args)
{
string currentprocess = Process.GetCurrentProcess().ProcessName;
Process[] allLocalProcesses = Process.GetProcesses();
Console.WriteLine("Antal lokala processes är " +
allLocalProcesses.Length);
foreach (Process process in allLocalProcesses)
{
Console.WriteLine(process.ProcessName);
if (currentprocess == process.ProcessName)
{
Console.WriteLine(process.ProcessName + " is an instance of
this application");
}
}
}
//Tony
When I run this program I saw that my current application was called
ProcessExample.vshost.
I was surprised over that this vshost was part of the processname.
I have thought that the application would have been called just
ProcessExample without this vshost.
So my question is why is the process of the application is called
ProcessExample.vshost and not
just ProcessExample ?
static void Main(string[] args)
{
string currentprocess = Process.GetCurrentProcess().ProcessName;
Process[] allLocalProcesses = Process.GetProcesses();
Console.WriteLine("Antal lokala processes är " +
allLocalProcesses.Length);
foreach (Process process in allLocalProcesses)
{
Console.WriteLine(process.ProcessName);
if (currentprocess == process.ProcessName)
{
Console.WriteLine(process.ProcessName + " is an instance of
this application");
}
}
}
//Tony