Re: get the username associated with a process



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
.



Relevant Pages