限制對實作此方法之 物件的方法和屬性的存取。
語法
HRESULT LockDown(
[in] LONG flags
);
參數
[in] flags
限制從 Windows Update 網站存取各種 Windows Update Agent (WUA) 物件的選項。
將此參數設定為 uloForWebsiteAccess 或 1 (一個) 會限制對實作 IUpdateLockdown 介面的 WUA 介面的存取。
如需 WUA 介面在指定此值時限制的方法和屬性清單,請參閱一節。
傳回值
如果此方法成功,則會傳回 S_OK。 否則,它會傳回 HRESULT 錯誤碼。
備註
下表識別實作 IUpdateLockdown 介面的介面。
| WUA 物件 | 限制的方法和屬性 |
|---|---|
| IAutomaticUpdates | |
| IAutomaticUpdatesSettings | |
| IUpdate | |
| IUpdateDownloader |
|
| IUpdateInstaller | |
| IUpdateServiceManager | |
| IWebProxy |
|
規格需求
| 需求 | 值 |
|---|---|
| 最低支援的用戶端 | Windows XP、Windows 2000 Professional 與 SP3 [僅限傳統型應用程式] |
| 最低支援的伺服器 | Windows Server 2003、Windows 2000 Server 與 SP3 [僅限桌面應用程式] |
| 目標平台 | Windows |
| 標頭 | wuapi.h |
| 程式庫 | Wuguid.lib |
| Dll | Wuapi.dll |