IAutomaticUpdatesSettings::get_ReadOnly method (wuapi.h)

[IAutomaticUpdatesSettings::ReadOnly is no longer supported. Starting with Windows 10 calls to ReadOnly always return VARIANT_FALSE. However, IAutomaticUpdatesSettings::Save is a no-op, so no changes can be made.]

Gets a Boolean value that indicates whether the Automatic Update settings are read-only.

This property is read-only.

Syntax

HRESULT get_ReadOnly(
  VARIANT_BOOL *retval
);

Parameters

retval

Return value

None

Remarks

ReadOnly is VARIANT_TRUE if either of the following conditions is true:

  • The caller has insufficient security permissions to modify the Automatic Updates settings.
  • The current settings are enforced by Group Policy.
The caller can modify the settings in the IAutomaticUpdatesSettings interface only if ReadOnly is VARIANT_FALSE. The value of ReadOnly may change after calling Refresh.

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

See also

IAutomaticUpdatesSettings

IAutomaticUpdatesSettings.Refresh