Click here to Skip to main content
15,500,885 members

Comments by Anurag__ (Top 8 by date)

Anurag__ 2-Jan-20 2:53am View    
https://social.technet.microsoft.com/Forums/en-US/208e8a4c-f2fa-43f1-842a-a2b4de8b8dd3/some-of-the-cumulative-amp-feature-updates-not-giving-download-url-windows-10?forum=winserverwsus
Anurag__ 22-Nov-19 5:04am View     CRLF
This above code working fine till windows 8.1 but in some of the cumulative updates & feature updates, not getting download url in windows 10.
Anurag__ 22-Nov-19 5:02am View     CRLF
I modified some code, now i am getting download url. Modified code:- res = update->get_BundledUpdates(&updatecol); //res = updatecol->get_Count(&j); res = updatecol->get_Item(0,&updateTmp); res = update->get_KBArticleIDs(&updateKBIDs); if (FAILED(res)) { HandleError(L"Failed to get KB article ID list", res); goto innerCleanup; } res = updateTmp->get_DownloadContents(&pDownUrl); if(SUCCEEDED(res)) { BSTR url; res = pDownUrl->get_Count(&count); res = pDownUrl->get_Item(0, &downloadContent); if(FAILED(res)) { HandleError(L"Failed to get url article ID count", res); //goto innerCleanup; } else { res = downloadContent->get_DownloadUrl(&url); if(FAILED(res)) { //goto innerCleanup; } else { std::wcout << L"URL" << L':' << url <
Anurag__ 22-Nov-19 0:37am View     CRLF
I got this code from following link https://gist.github.com/apsun/b471c2e11dab94ad690d where i added this code res = update->get_DownloadContents(&pDownUrl); if(SUCCEEDED(res)) { BSTR url; res = pDownUrl->get_Count(&count); res = pDownUrl->get_Item(1, &downloadContent); if(FAILED(res)) { HandleError(L"Failed to get url article ID count", res); //goto innerCleanup; } else { res = downloadContent->get_DownloadUrl(&url); if(FAILED(res)) { //goto innerCleanup; } else { std::wcout << L"URL" << url << L':' << std::endl; SysFreeString(url); } } In above section i am not getting download url.
Anurag__ 22-Nov-19 0:15am View     CRLF
Hi richard, I think there is a word limit is there, there fore not able to see complete code, let me check some other method.