简体   繁体   中英

how to determine windows update level through IUpdate interface

I want to count available "important" windows updates in a c++ program. When windows updates reports about available updates, it classifies them by level. In vista the possible levels are {important, recommended, optional} XP : {high-priority, optional}

http://www.microsoft.com/windows/downloads/windowsupdate/updatelevels.mspx I can't find a mechanism to get the level of an update (IUpdate) from SDK.

It looks like the IUpdate::DownloadPriority property might be the correct mechanism for getting the level of importance of each update.

This property will return an value shown in the DownloadPriority enum . As mentioned in the documentation the the exact importance or difference between the priorities is up to the program that implements this interface; for example Vista defines each level as "important", "recommended" and "optional" whereas XP only implements "high-priority" and "optional", likely throwing the normal and low priority levels into the same bucket (would have to experiment to verify this).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM