问题描述
如何在传递pid或进程名称时获取C#中的进程命令行,父进程ID和用户名.
感谢您的答复.
请不要WMI.
我已经拥有:VB .NET(YAPM),AutoIt(NTQuery ..(),zswQuer ...()),带有MFC/COM的C ++(NTPROCESSINFO.h).
我试图将vb .net转换为c#,但项目很大,转换并不仅完成,而且我还提取了cmdline的代码,但仅存在算术溢出异常.
我不想要EnumerateProcess/Service(),我想要C#中的getProcessCmdLine(pid)函数.
其他人也一样.
如果只有一个人创建了该类或方法,请共享.
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.
推荐答案
这篇关于如何获取进程命令行,父进程ID和C#中的用户名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!