Home All Groups Group Topic Archive Search About

Diagnostics.Process get by name doesn't return command line argume

Author
16 Feb 2005 6:05 PM
SteveC
I'm trying to get the command line arguments for some running processes.
When I use "Process.GetProcessesByName", the command line arguments property
is null ("").
Does anyone know how to get this info??

    Thanks,
      Steve
Author
16 Feb 2005 8:21 PM
Mattias Sjögren
>Does anyone know how to get this info??

It's far from trivial. Here's an example of doing it in C++

http://win32.mvps.org/processes/remthread.html



Mattias

--
Mattias Sjögren [MVP]  mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.

Bookmark and Share