如何获得其他进程的参数? [英] How to get arguments other processes?

查看:90
本文介绍了如何获得其他进程的参数?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的程序必须确保使用特定参数调用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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆