IUpdateServiceManager::RemoveService method (wuapi.h)
Removes a service registration from Windows Update Agent (WUA).
Syntax
HRESULT RemoveService(
[in] BSTR serviceID
);
Parameters
[in] serviceID
An identifier for the service to be unregistered.
Return value
Returns S_OK if successful. Otherwise, returns a COM or Windows error code. This method can also return the following error codes.
Return code | Description |
---|---|
|
A parameter value was invalid. |
|
This method cannot be called from a remote computer. |
|
The Windows Update service could not be removed. |
|
The state of Automatic Updates could not be changed. This error is returned if you try to delete the service. |
|
Attempt to register or remove an unknown service. |
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows XP, Windows 2000 Professional with SP3 [desktop apps only] |
Minimum supported server | Windows Server 2003, Windows 2000 Server with SP3 [desktop apps only] |
Target Platform | Windows |
Header | wuapi.h |
Library | Wuguid.lib |
DLL | Wuapi.dll |