Retrieving user from process list

  • Thread starter Thread starter Rainer Worbis
  • Start date Start date
R

Rainer Worbis

How is it possible to get the user thats running a process retrieved by System.Diagnostics.Process.getProcesses() ?

Rainer
 
You have some options depending on the OS:

Use System.Management (WMI) and query the Win32_Process tree, or PInvoke the WTS API's (W2K3 and XP) or PInvoke the OpenProcessToken
using the process handle returned by GetProcesses.

Willy.

Rainer Worbis wrote:
|| How is it possible to get the user thats running a process retrieved
|| by System.Diagnostics.Process.getProcesses() ?
||
|| Rainer
 
Back
Top