question

VaibhavGaur-4349 avatar image
0 Votes"
VaibhavGaur-4349 asked VaibhavGaur-4349 commented

Win32 API in C++ to see if a particular KB is installed

I wanted to find out if a particular KB is installed or not and also if it is applicable to the installed windows version. I have tried Windows Update Agent API but that doesn't give a complete list of installed patches which I get using "wmic qfe get hotfixid". Now I dont want to call wmic from within c++ code and was looking for Win32 APIs which can get this information for me.

c++windows-api-general
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

Castorix31 avatar image
0 Votes"
Castorix31 answered VaibhavGaur-4349 commented

You can call WMI in C++ : Example: Creating a WMI Application
To get the KB list, you replace the query by :

SELECT * FROM Win32_QuickFixEngineering








· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thanks a lot. It worked.

0 Votes 0 ·