I am a newbie in C++ and currently working to get Windows Hotfix/Patch information in C++ DLL.
I have evaluated the following ways:
- By executing a sub process in C++ code and running
wmic qfe getand read all the data. - By using the C++ APIs to initialize COM, Connect to Wbem and execute
select * from win32_quickfixengineeringquery.
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?