Process UserName

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,
I am developing an application similar to the Windows Task manager, that
lists running processes and its info, however the Process class available in
the framework does not provide any methods to get the UserName that launched
a runing process. So I woudl like to knwo if there is a way to get this
without having to call any unmanaged API.
 
Diwik said:
Hi,
I am developing an application similar to the Windows Task manager, that
lists running processes and its info, however the Process class available
in
the framework does not provide any methods to get the UserName that
launched
a runing process. So I woudl like to knwo if there is a way to get this
without having to call any unmanaged API.

Or you have to use the Win32 API's through PInvoke to obtain the process
owner, or you have to use the System.Management namespace classes with the
WMI class win32_process.

Willy.
 

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

Back
Top