From the Windows Update COM Library (WUAPILib) I have access to the IUpdate interface however I don't see of any way to use to get the update classification (Critical, Important, Optional) to group updates in the same way like the Windows Update UI in Control Panel does.
相关问题
- Sorting 3 numbers without branching [closed]
- Graphics.DrawImage() - Throws out of memory except
- Generic Generics in Managed C++
- Why am I getting UnauthorizedAccessException on th
- 求获取指定qq 资料的方法
With the help of the IUpdate, you can get the IcategoryCollection from the Update ID.
Now, the first ICategory stores the classification of update type for the OS. Do pay special attention to the line where comment is placed:
Test Code:
Sample Output: