Windows API equivalent to “WMIC QFE Get”

旧时模样 提交于 2019-12-12 18:24:35

问题


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

I have evaluated the following ways:

  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.

Apart from above two methods,

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?


回答1:


You can use the Windows Update Agent API and the IUpdateSearcher interface.



来源:https://stackoverflow.com/questions/12780659/windows-api-equivalent-to-wmic-qfe-get

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!