Windows API 等效于“WMIC QFE Get" [英] Windows API equivalent to "WMIC QFE Get"

查看:36
本文介绍了Windows API 等效于“WMIC QFE Get"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是 C++ 新手,目前正在努力获取 C++ DLL 中的 Windows 修补程序/补丁信息.

I am a newbie in C++ and currently working to get Windows Hotfix/Patch information in C++ DLL.

我评估了以下方式:

  1. 通过在 C++ 代码中执行子进程并运行 wmic qfe get 并读取所有数据.
  2. 通过使用 C++ API 初始化 COM,连接到 Wbem 并执行 select * from win32_quickfixengineering 查询.
  1. By executing a sub process in C++ code and running wmic qfe get and read all the data.
  2. By using the C++ APIs to initialize COM, Connect to Wbem and execute select * from win32_quickfixengineering query.

除了以上两种方法,

是否有任何直接的 Windows API 可以为我完成所有工作并提供当前安装在机器上的 KB 信息列表?

Is there any direct Windows API that does all the job for me and gives the list of KB Info currently installed on the machine?

推荐答案

您可以使用 Windows Update Agent APIIUpdateSearcher 界面.

这篇关于Windows API 等效于“WMIC QFE Get"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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