Processes and the Process class

G

Guest

I don't know if this is right forum for this question:
Can anyone tell me how to find the user that is running a process? As all
processes have to be run under a user I expected to find a property/method in
the Process class that would return the user, but strangely there doesn't
seem to be one.

Also on the subject of processes, does anyone know if there's an event I can
trap in my application whenever a process is started or stopped?
 
G

Guest

Thanks Peter. I eventually got the user info using WMI, though it's not
straightforward, is it. I'll have a go at getting a process start event
tomorrow, but that's not so important as I can do it by polling.
Thanks for putting me on the right track.
 

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