【问题标题】:Is there a method in the Windows API for firing off code when a specific application is run?Windows API 中是否有在运行特定应用程序时触发代码的方法?
【发布时间】:2013-05-24 22:49:11
【问题描述】:

我想监控在 Windows 中运行的应用程序的状态。我可以使用什么方法(Win32 或更新的 API)来观察特定应用程序何时运行并随后执行我选择的另一个应用程序?

【问题讨论】:

    标签: windows winapi


    【解决方案1】:

    您可以使用 WMI - 请参阅此 SO 问题并回答 How to monitor process/program execution in windows?

    特别是Win32_ProcessStartTrace class

    该线程中还有一些其他选项。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-07-08
      • 2020-06-21
      • 2010-09-05
      • 1970-01-01
      相关资源
      最近更新 更多