T
Tim B
Hi
I am writing a program for a terminalserver.
But the program should startet only once
so i write a methode which returns if the process is running:
....
Process[] processes = Process.GetProcessesByName(ProcessName);
if(processes.Length > 1)
{
return true;
}
else
{
return false;
}
....
so now me problem.
I want that every user on the terminalservice can start the program once!
But when sameone starts it a other user can't start it too!
so i must check the user of the process.
who can i get the owner of the process?
thx
greets tim
I am writing a program for a terminalserver.
But the program should startet only once
so i write a methode which returns if the process is running:
....
Process[] processes = Process.GetProcessesByName(ProcessName);
if(processes.Length > 1)
{
return true;
}
else
{
return false;
}
....
so now me problem.
I want that every user on the terminalservice can start the program once!
But when sameone starts it a other user can't start it too!
so i must check the user of the process.
who can i get the owner of the process?
thx
greets tim