Home All Groups Group Topic Archive Search About

Get a process's child process

Author
20 Oct 2006 6:02 PM
Agnes
Hi,

Is there a way to get the current process's child processes?

Or given a user, get all the processes that are running as that user using
C#?

Thank you in advance!

Agnes

Author
20 Oct 2006 6:27 PM
Cowboy (Gregory A. Beamer)
I am not sure how, but you will have to poke into the Windows API. For sigs,
check pinvoke.net. That is the way the utilities that use this type of info
work.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
http://gregorybeamer.spaces.live.com

*************************************************
Think outside of the box!
*************************************************
Show quote
"Agnes" <agnesw@nospam.nospam> wrote in message
news:u%23kCwHH9GHA.536@TK2MSFTNGP04.phx.gbl...
> Hi,
>
> Is there a way to get the current process's child processes?
>
> Or given a user, get all the processes that are running as that user using
> C#?
>
> Thank you in advance!
>
> Agnes
>
Author
20 Oct 2006 7:13 PM
Ben Voigt
"Agnes" <agnesw@nospam.nospam> wrote in message
news:u%23kCwHH9GHA.536@TK2MSFTNGP04.phx.gbl...
> Hi,
>
> Is there a way to get the current process's child processes?
>
> Or given a user, get all the processes that are running as that user using
> C#?

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/tool_help_library.asp

Show quote
>
> Thank you in advance!
>
> Agnes
>
Author
21 Oct 2006 5:02 AM
Siva M
For the 2nd question see if this helps:
http://msmvps.com/blogs/siva/archive/2006/10/02/Getting-Windows-Process-Owner-Name.aspx?

"Agnes" <agnesw@nospam.nospam> wrote in message
news:u%23kCwHH9GHA.536@TK2MSFTNGP04.phx.gbl...
Hi,

Is there a way to get the current process's child processes?

Or given a user, get all the processes that are running as that user using
C#?

Thank you in advance!

Agnes

AddThis Social Bookmark Button