Windows Update Searcher
Search all Microsoft Update Missing
AI
Ringkasan AI: 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.
Kode Sumber
'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
Komentar Asli (3)
Dipulihkan dari Wayback Machine