0

Hi, I am designing a Task Manager like Application in C#. It displays the currently running processes. I used to get the Process detail using Process.StartInfo. But Process.StartInfo.UserName is empty for all process. How can get the UserName for the currently running processes.

3
Contributors
2
Replies
3
Views
8 Years
Discussion Span
Last Post by ddanbe
0

Hi, I am designing a Task Manager like Application in C#. It displays the currently running processes. I used to get the Process detail using Process.StartInfo. But Process.StartInfo.UserName is empty for all process. How can get the UserName for the currently running processes.

Any luck mate? I have the same problem. Also FileName. And do you know how to get CPU usege?

0

On this msdn page I read: If you call the Start(ProcessStartInfo) method with the ProcessStartInfo.UserName and ProcessStartInfo.Password properties set, the unmanaged CreateProcessWithLogonW function is called, which starts the process in a new window even if the CreateNoWindow property value is true or the WindowStyle property value is Hidden.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.