Re: get the username associated with a process
- From: Patrick Steele [MVP] <patrick@xxxxxxxx>
- Date: Mon, 15 Aug 2005 10:51:25 -0400
In article <4E38DA03-71E4-48AD-B755-90A325C964F3@xxxxxxxxxxxxx>,
DirectorMinvent@xxxxxxxxxxxxxxxxxxxxxxxxx says...
> Hi,
>
> I am trying to get the name of the user which stared a process... similar to
> the user name column in the process list in task manager. I have looked
> through the Process members but am at a loss to find what I require!
>
> Any help would be greatly appreciated.
You'll have to do some PInvoke with the Win32 API. Here's a C# example
that shows the calls and process:
http://tinyurl.com/dtvva
--
Patrick Steele
Microsoft .NET MVP
http://weblogs.asp.net/psteele
.
- References:
- get the username associated with a process
- From: Director - Minvent
- get the username associated with a process
- Prev by Date: Re: system IO exception when trying to kill an image file.
- Next by Date: Re: system IO exception when trying to kill an image file.
- Previous by thread: get the username associated with a process
- Next by thread: Re: get the username associated with a process
- Index(es):
Relevant Pages
|