确定不同进程的命令行(在TaskManager和ProcExplorer中完成) [英] Determine commandline of a different process (as done in TaskManager and ProcExplorer)
本文介绍了确定不同进程的命令行(在TaskManager和ProcExplorer中完成)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在TaskManager和ProcExplorer中,显示了所有正在运行的进程的命令行。问题:哪个API可用于读取外部应用程序的commandLine(函数GetCommandLine仅适用于
当前进程)?
提前感谢解决提示:-D
In the TaskManager and in the ProcExplorer the commandlines of all running processes are shown. Question: Which function in which API can be used to read out the commandLine of a foreign application (the function GetCommandLine only works with the
current process)?
Thanks in advance for the solving hint :-D
推荐答案
没有API函数可以执行您想要执行的操作。 要获取另一个进程的命令行,您必须引用其PEB,然后引用其RTL_USER_PROCESS_PARAMETERS结构。
There is no API function to do what you want to do. To obtain a command line for another process you would have to refer to its PEB and then to its RTL_USER_PROCESS_PARAMETERS structure.
这篇关于确定不同进程的命令行(在TaskManager和ProcExplorer中完成)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文