469,945 Members | 2,270 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,945 developers. It's quick & easy.

User name a ssociated with a runningn process

I need to get the the user name associated with a running process (Listed as
"UserName" in Task Manager Window). The Process Class doesn't seem to
provide a direct way for doing this! Thanks
-- Moses
Nov 16 '05 #1
2 3634

System.Environment.Username

--Richard

"Moses M" wrote:
I need to get the the user name associated with a running process (Listed as
"UserName" in Task Manager Window). The Process Class doesn't seem to
provide a direct way for doing this! Thanks
-- Moses

Nov 16 '05 #2
Looks like I ddid not I explain the problem clearly. Task Manager lists
processes running on a local system, including a "user name" associated
with each process (e.g. SYSTEM). My application needs to check if a
particular process is running, and if so get the associated "owner". I am
really trying to determine the security context in which the process was
started. Thanks for any input.
"Richard" <Ri*****@discussions.microsoft.com> wrote in message
news:B0**********************************@microsof t.com...

System.Environment.Username

--Richard

"Moses M" wrote:
I need to get the the user name associated with a running process (Listed as "UserName" in Task Manager Window). The Process Class doesn't seem to
provide a direct way for doing this! Thanks
-- Moses

Nov 16 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

10 posts views Thread by Sorin Dolha [MCSD .NET] | last post: by
15 posts views Thread by Tom Nowak | last post: by
7 posts views Thread by John.NET | last post: by
8 posts views Thread by simonlpwaters | last post: by
33 posts views Thread by JamesB | last post: by
4 posts views Thread by =?Utf-8?B?QXZhRGV2?= | last post: by
4 posts views Thread by =?Utf-8?B?WmFyYm9yZw==?= | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.