Processes and the Process class

  • Thread starter Thread starter Guest
  • Start date Start date
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?
 
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.
 
Back
Top