使用WUAPI获取补丁下载地址时,get_BundledUpdates()函数执行失败
使用WUAPI获取补丁下载地址时,get_BundledUpdates()函数执行失败,部分代码如下
IUpdateDownloadContentCollection *downloadCollection = NULL;
IUpdateDownloadContent *downloadContent = NULL;
IUpdateCollection *updtCollection = NULL;
IUpdate *bundledUpdateItem = NULL;
IUpdate *型变量 VarUpdate->get_BundledUpdates(&updtCollection);
updtCollection->get_Item(0, &bundledUpdateItem);
bundledUpdateItem->get_DownloadContents(&downloadCollection);
downloadCollection->get_Item(0, &downloadContent);
downloadContent->get_DownloadUrl(&strUrl);
DownloadUrl = _com_util::ConvertBSTRToString(strUrl);