Windows Update Agent 0xC8000438 error while getting list of patche

  • Thread starter Thread starter Guest
  • Start date Start date
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;
}
 
Krzysztof Majcher said:
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

Is the below any help - you will have a better idea than I.

http://www.google.co.uk/search?hl=en&q=AddScanPackageService()Microsoft+api+call&btnG=Search&meta=
 
Thank You for your input, but we already checked both google and MSDN
resources and didn't manage to find any information on this specific error.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top