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.
 
Back
Top