Compartir a través de


IUpdateHistoryEntry::ServiceID property

Gets the service identifier of an update service that is not a Windows update. This property is meaningful only if the ServerSelection property returns ssOthers.

This property is read-only.

Syntax

HRESULT get_ServiceID(
  [out] BSTR *retval
);

Property value

The service ID of an update service if the ServerSelection property returns ssOthers. However, if ServerSelection returns ssOthers but no update service is available, ServiceID returns NULL.

If the ServerSelection property returns ssManagedServer or ssWindowsUpdate, ServiceID is not meaningful and returns NULL.

Error codes

Returns S_OK if successful. Otherwise, returns a COM or Windows error code.

Requirements

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]

Header

Wuapi.h

IDL

Wuapi.idl

Library

Wuguid.lib

DLL

Wuapi.dll

See also

IUpdateHistoryEntry