Click here to Skip to main content
15,888,984 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
My code worked fine in windows7 for fetching windows updates but its giving error in windows xp.
I am getting error "Exception from HRESULT: 0x80240007"

this is my code
C#
var updateSession = new UpdateSession();
            var updateSearcher = updateSession.CreateUpdateSearcher();
            var count = updateSearcher.GetTotalHistoryCount();
            var history = updateSearcher.QueryHistory(0, count);

I am getting error in the last line.Plz help.Thanks in advance.

Swati
Posted
Updated 7-Nov-12 22:15pm
v2
Comments
jim lahey 8-Nov-12 4:16am    
what is UpdateSession?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900