information on processes

N

ngr

I need to be able to find out which user started a particular process.
I need to know what user is running an instance of an application I am
writing.

It is possible in my environment to have more than one user running the same
program.

I have an application which will run on a citrix running Terminal Services.
In short this means that the users do not run a local copy of the program on
their PC, but run the program on the server - they only have a terminal to
the area on the server.

It's a bit like a UNIX box really, where there can be more than one user in
the system at any one time.
If two users are running the same program, then this is fine, but if one
user tries to open two sessions of the same program I have to trap this.

Bear in mind that this is NOT a program on different PCs. It is a server
that has workareas where several copies of the program are run by different
users.

If anyoune can direct me (VB.NET 2005) as how to retrieve user information
on a process I would be grateful.

Thanks in advance for any feedback
 
A

AMDRIT

Citrix and Terminal Services will allow each user to spawn applications they
have access just as if they were working locally. Take a look at the
system.runtime namespace and WMI. Bear in mind that you will need elevated
privledges to query process information.

Also bear in mind that a user can have multiple sessions on the server and
potentially the same application running more than once, of course this is
configurable on the server.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top