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 | |
IAutomaticUpdatesSettings | |
IUpdate | |
IUpdateDownloader |
|
IUpdateInstaller |
|
IUpdateServiceManager | |
IWebProxy |
|
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 |