By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
448,538 Members | 875 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 448,538 IT Pros & Developers. It's quick & easy.

Retrieving user from process list

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

Rainer

Nov 13 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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
Nov 13 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.