How to get Process Command Line, Parent Process ID & Username in C#, When you pass pid or process name.
Thanks for replying.
NO WMI PLEASE.
I already have: VB .NET ( YAPM ), AutoIt (NTQuery..(), zswQuer...()), C++ with MFC/COM ( NTPROCESSINFO.h ).
I tried to convert vb .net to c# but the project is big & conversion doesn't complete only & also i had extracted the code for cmdline but there is only arithmetic overflow exception.
I don't want EnumerateProcess/Service(), I want getProcessCmdLine(pid) function in C#.
Similarly for others.
If anybody has already created the class or methods only, please share.