G
Guest
My software experience a problem when trying to get a list of
patches.
The code uses COM to communicate with the WUA service.
The code exits with 0xC8000438 error code during AddScanPackageService()
Microsoft API call. The tests have been performed using Administrator
and other accounts.
I didn't manage to find any explanation of this error code.
Can somebody tell me what can be cause of this problem, or help with
suggesting additional steps to investigate this issue?
Thanks in advance for all the info.
Machine is Windows XP Professional with SP2
-----------------------code-----------------------
IUpdateServiceManager * serviceManager = 0;
IUpdateService * service = 0;
IUpdateSession * session = 0;
IUpdateSearcher * searcher = 0;
ISearchResult * searchResult = 0;
HRESULT hres;
_bstr_t name(L"LocalService");
/* updateCabinetPath contains path to wsusscan.cab */
_bstr_t file((const wchar_t *)updateCabinetPath);
hres = CoInitialize(NULL);
if ( FAILED(hres) ) {
return NULL;
}
hres = CoCreateInstance(
CLSID_UpdateServiceManager, 0, CLSCTX_ALL, IID_IUpdateServiceManager,
(LPVOID *)&serviceManager);
if ( FAILED(hres) ) {
return NULL;
}
/*
* the line below causes error -939523016 (0xC8000438)
*/
hres = serviceManager->AddScanPackageService(name, file, 1, &service);
if ( FAILED(hres) ) {
return NULL;
}
patches.
The code uses COM to communicate with the WUA service.
The code exits with 0xC8000438 error code during AddScanPackageService()
Microsoft API call. The tests have been performed using Administrator
and other accounts.
I didn't manage to find any explanation of this error code.
Can somebody tell me what can be cause of this problem, or help with
suggesting additional steps to investigate this issue?
Thanks in advance for all the info.
Machine is Windows XP Professional with SP2
-----------------------code-----------------------
IUpdateServiceManager * serviceManager = 0;
IUpdateService * service = 0;
IUpdateSession * session = 0;
IUpdateSearcher * searcher = 0;
ISearchResult * searchResult = 0;
HRESULT hres;
_bstr_t name(L"LocalService");
/* updateCabinetPath contains path to wsusscan.cab */
_bstr_t file((const wchar_t *)updateCabinetPath);
hres = CoInitialize(NULL);
if ( FAILED(hres) ) {
return NULL;
}
hres = CoCreateInstance(
CLSID_UpdateServiceManager, 0, CLSCTX_ALL, IID_IUpdateServiceManager,
(LPVOID *)&serviceManager);
if ( FAILED(hres) ) {
return NULL;
}
/*
* the line below causes error -939523016 (0xC8000438)
*/
hres = serviceManager->AddScanPackageService(name, file, 1, &service);
if ( FAILED(hres) ) {
return NULL;
}