IAutomaticUpdatesSettings::ReadOnly property

[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(
  [out] VARIANT_BOOL *retval
);

Property value

VARIANT_TRUE if the Automatic Update settings are read-only. Otherwise, VARIANT_FALSE.

Error codes

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

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

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]

End of client support

Windows 10

End of server support

Windows Server 2016

Header

Wuapi.h

IDL

Wuapi.idl

Library

Wuguid.lib

DLL

Wuapi.dll

See also

IAutomaticUpdatesSettings
IAutomaticUpdatesSettings.Refresh

 

 

Show: