IUpdateLockdown::LockDown method (wuapi.h)

Restricts access to the methods and properties of the object that implements this method.

Syntax

HRESULT LockDown(
  [in] LONG flags
);

Parameters

[in] flags

The option to restrict access to various Windows Update Agent (WUA) objects from the Windows Update website.

Setting this parameter to uloForWebsiteAccess or to 1 (one) restricts access to the WUA interfaces that implement the IUpdateLockdown interface.

For a list of the methods and properties that the WUA interfaces restrict when this value is specified, see the "Remarks" section.

Return value

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

The following table identifies the interfaces that implement the IUpdateLockdown interface.

WUA object Restricted methods and properties
IAutomaticUpdates
Pause
Resume
IAutomaticUpdatesSettings
Save
IUpdate
AcceptEula
CopyFromCache
CopyToCache
IUpdateDownloader
BeginDownload
Download
EndDownload
IsForced (cannot set)
IUpdateInstaller
BeginInstall
BeginUninstall
EndInstall
EndUninstall
Install
IsForced (cannot set)
Uninstall
IUpdateServiceManager
AddScanPackageService
RemoveService
SetOption
IWebProxy
Address (cannot set)
AutoDetect (cannot set)
BypassList (cannot set)
BypassProxyOnLocal (cannot set)
SetPassword
UserName (cannot set)

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

IUpdateLockdown