Advertisement
7_2009-2012 Miscellaneous #238278

Windows Update Searcher

Search all Microsoft Update Missing

AI

AI Summary: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

Source Code
original-source
'Refer the COM: WUAPI 2.0 Type Library 
Imports WUApiLib.UpdateOperation
Imports WUApiLib.UpdateSessionClass
  Public Sub Get_Updates()
    'Object for seach
    Dim updateSearcher As New WUApiLib.UpdateSearcher
    Dim updateSession As New WUApiLib.UpdateSessionClass
    'Condition
    updateSearcher.Search("IsInstalled=0 and Type='Software'")
    Dim searchResult As WUApiLib.ISearchResult
    Dim Update As WUApiLib.IUpdate
    'Search
    searchResult = updateSearcher.Search("IsInstalled=0")
    'Show Tittles updates
    Dim i As Integer = 0
    For i = 0 To searchResult.Updates.Count - 1
      Update = searchResult.Updates.Item(i)
      MsgBox(Update.Title.ToString)
    Next
  End Sub
Original Comments (3)
Recovered from Wayback Machine