|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Get a process's child processHi,
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 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. -- Show quoteGregory A. Beamer MVP; MCP: +I, SE, SD, DBA http://gregorybeamer.spaces.live.com ************************************************* Think outside of the box! ************************************************* "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 > "Agnes" <agnesw@nospam.nospam> wrote in message
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/tool_help_library.asp
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#? Show quote >
> Thank you in advance! > > Agnes > 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 Is there a way to get the current process's child processes?news:u%23kCwHH9GHA.536@TK2MSFTNGP04.phx.gbl... Hi, Or given a user, get all the processes that are running as that user using C#? Thank you in advance! Agnes |
|||||||||||||||||||||||