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.