G
Guest
Hi,
I want to allow users to start my application only once. To do so, I use
Process[] Processes = Process.GetProcessesByName("MyApp");
to get all processes running on the machine and compair to the current
process ID. This is OK for single user machines, however, it is not OK on a
terminal server.
The WIN32 way to solve this problem is to combine process information with
the session ID of the current user.
How do I get session information .NET / C#???
Thanx for help!
Hans.
I want to allow users to start my application only once. To do so, I use
Process[] Processes = Process.GetProcessesByName("MyApp");
to get all processes running on the machine and compair to the current
process ID. This is OK for single user machines, however, it is not OK on a
terminal server.
The WIN32 way to solve this problem is to combine process information with
the session ID of the current user.
How do I get session information .NET / C#???
Thanx for help!
Hans.