如何获得其他进程的参数? [英] How to get arguments other processes?
问题描述
我的程序必须确保使用特定参数调用bitcoind。如何检查bitcoind是否正在运行以及如何获取其参数?
这可以使用WMI完成:
https://blogs.msdn.microsoft.com/oldnewthing/20091125-00/?p=15923/ 。有一个示例可以放在一些MyFile.vbs文件中,然后使用'cscript MyFile.vbs'命令执行。
类似的事情也可以在C ++中完成:
https://msdn.microsoft.com/en-us/library/aa394558 %28V = vs.85%29.aspx 。
My program must ensure that is called bitcoind with specific parameters. How check bitcoind is running and how to get its parameters?
This can be done using WMI: https://blogs.msdn.microsoft.com/oldnewthing/20091125-00/?p=15923/. There is a sample which can be put in some MyFile.vbs file then executed with ‘cscript MyFile.vbs’ command.
Similar things can be done in C++ too: https://msdn.microsoft.com/en-us/library/aa394558%28v=vs.85%29.aspx.
这篇关于如何获得其他进程的参数?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!