IUpdateSearcher::CanAutomaticallyUpgradeService property

Gets and sets a Boolean value that indicates whether future calls to the BeginSearch and Search methods result in an automatic upgrade to Windows Update Agent (WUA). Currently, this property's valid value corresponds to the option that does not automatically upgrade WUA.

This property is read/write.

Syntax

HRESULT put_CanAutomaticallyUpgradeService(
  [in]  VARIANT_BOOL value
);

HRESULT get_CanAutomaticallyUpgradeService(
  [out] VARIANT_BOOL *retval
);

Property value

The value of this parameter must be VARIANT_FALSE. If this parameter is set to VARIANT_TRUE, a WU_E_NOT_SUPPORTED error code is returned.

Error codes

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

Returns a WU_E_NOT_SUPPORTED error code if the value parameter is VARIANT_TRUE.

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

IUpdateSearcher